Function4ToLayerSyntax

final implicit class Function4ToLayerSyntax[A, B, C, D, E](self: (A, B, C, D) => E)(implicit evidence$11: Tag[A], evidence$12: Tag[B], evidence$13: Tag[C], evidence$14: Tag[D], evidence$15: Tag[E])
class Object
trait Matchable
class Any

Value members

Concrete methods

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

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