tofu.internal.instances.ContextBaseCarrierInstance.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.internal.carriers.{UnliftCarrier2, UnliftCarrier3}
import tofu.lift.Unlift
private[tofu] trait ContextBaseCarrierInstance:
inline given [F[_], G[_]]: Unlift[F, G] = summonFrom {
case carrier: UnliftCarrier3[F, G] => carrier
case carrier: UnliftCarrier2[F, G] => carrier
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy