Restricts type of parameter fn
to a function defined by the given API:
Restricts type of parameter fn
to a function defined by the given API:
val Api = := :> Segment[String]('name) :> Get[User] derive[IO](Api).from(name: String => IO.pure(User(name)))