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

tofu.internal.instances.ScopedInstance.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.ScopedExecute
import tofu.internal.carriers.{ScopedCarrier2, ScopedCarrier3}

private[tofu] trait ScopedInstance:
  inline given [Tag, F[_]]: ScopedExecute[Tag, F] = summonFrom {
    case carrier: ScopedCarrier3[Tag, F] => carrier
    case carrier: ScopedCarrier2[Tag, F] => carrier
  }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy