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

tofu.internal.instances.MakeAtomInstance.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.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