Function3ToLayerSyntax

final implicit class Function3ToLayerSyntax[A, B, C, D](self: (A, B, C) => D)(implicit evidence$7: Tag[A], evidence$8: Tag[B], evidence$9: Tag[C], evidence$10: Tag[D])
class Object
trait Matchable
class Any

Value members

Concrete methods

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

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