Function1ToLayerSyntax

final implicit class Function1ToLayerSyntax[A, B](self: A => B)(implicit evidence$2: Tag[A], evidence$3: Tag[B])
class Object
trait Matchable
class Any

Value members

Concrete methods

def toLayer[B1 >: B : Tag]: URLayer[Has[A], Has[B1]]

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) extends Foo

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