cats-effect
cats-effect copied to clipboard
cats.mtl.Local[IO, E] from IOLocal[E]
trafficstars
cats.mtl.Local's semantics are a safe and useful subset of what can be done with IOLocal. This provides easy access to a Local[F, E] instance from an IOLocal[E] value.
- core takes on a cats-mtl dependency. Note that testkit already couples these release cycles.
- Adds
IOLocal#asLocalto get a Local view of anIOLocalvalue - Adds
IOLocal.localto create anIOLocaland return a local view of it, insideIO.
A similar view is already in use in otel4s.
Fixes #3385.