All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tofu.internal.instances.ContextBaseCarrierInstance.scala Maven / Gradle / Ivy

There is a newer version: 0.13.6
Show newest version
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