tofu.internal.instances.FireInstance.scala Maven / Gradle / Ivy
package tofu.internal
package instances
import cats.MonadError
import tofu.Fire
import tofu.internal.carriers.{FibersCarrier2, FibersCarrier3}
import scala.compiletime.summonFrom
private[tofu] trait FireInstance:
inline given [F[_], E](using inline m: MonadError[F, E]): Fire[F] = summonFrom {
case carrier: FibersCarrier3[F, E] => carrier.content
case carrier: FibersCarrier2[F] => carrier.content
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy