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