Function5ToLayerSyntax

final implicit class Function5ToLayerSyntax[A, B, C, D, E, F](self: (A, B, C, D, E) => F)(implicit evidence$16: Tag[A], evidence$17: Tag[B], evidence$18: Tag[C], evidence$19: Tag[D], evidence$20: Tag[E], evidence$21: Tag[F])
class Object
trait Matchable
class Any

Value members

Concrete methods

def toLayer[F1 >: F : Tag]: URLayer[Has[A] & Has[B] & Has[C] & Has[D] & Has[E], Has[F1]]

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