tofu.syntax.embed.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tofu-core-higher-kind_3 Show documentation
Show all versions of tofu-core-higher-kind_3 Show documentation
Opinionated set of tools for functional programming in Scala
package tofu.syntax
import cats.FlatMap
import tofu.higherKind.Embed
object embed {
implicit final class TofuEmbedOps[F[_], T[_[_]]](private val underlying: F[T[F]]) extends AnyVal {
def embed(implicit embed: Embed[T], F: FlatMap[F]): T[F] = embed.embed(underlying)
}
}