tofu.internal.instances.MakeQVarInstance.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tofu-kernel_3 Show documentation
Show all versions of tofu-kernel_3 Show documentation
Opinionated set of tools for functional programming in Scala
package tofu.internal
package instances
import scala.compiletime.summonFrom
import tofu.concurrent.MakeQVar
import tofu.internal.carriers.{MkQVarCE2Carrier, MkQVarCE3Carrier}
private[tofu] trait MakeQVarInstance:
inline given [I[_], F[_]]: MakeQVar[I, F] = summonFrom {
case carrier: MkQVarCE3Carrier[I, F] => carrier
case carrier: MkQVarCE2Carrier[I, F] => carrier
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy