tofu.internal.instances.MakeAtomInstance.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.MakeAtom
import tofu.internal.carriers.{MkAtomCE2Carrier, MkAtomCE3Carrier}
private[tofu] trait MakeAtomInstance:
inline given [I[_], F[_]]: MakeAtom[I, F] = summonFrom {
case carrier: MkAtomCE3Carrier[I, F] => carrier
case carrier: MkAtomCE2Carrier[I, F] => carrier
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy