Function7ToLayerSyntax

final implicit class Function7ToLayerSyntax[A, B, C, D, E, F, G, H](self: (A, B, C, D, E, F, G) => H)(implicit evidence$29: Tag[A], evidence$30: Tag[B], evidence$31: Tag[C], evidence$32: Tag[D], evidence$33: Tag[E], evidence$34: Tag[F], evidence$35: Tag[G], evidence$36: Tag[H])
class Object
trait Matchable
class Any

Value members

Concrete methods

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

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