Function2ToLayerSyntax

final implicit class Function2ToLayerSyntax[A, B, C](self: (A, B) => C)(implicit evidence$4: Tag[A], evidence$5: Tag[B], evidence$6: Tag[C])
class Object
trait Matchable
class Any

Value members

Concrete methods

def toLayer[C1 >: C : Tag]: URLayer[Has[A] & Has[B], Has[C1]]

Converts this function to a Layer that depends upon its inputs.

Converts this function to a Layer that depends upon its inputs.

case class FooLive(config: Config, repo: Repo) extends Foo

val live: URLayer[Has[Config] with Has[Repo], Has[Foo]] =
 FooLive.toLayer