Creates a resource from an allocating effect.
Creates a resource from an allocating effect.
the effect type in which the resource is acquired and released
the type of the resource
an effect that returns a tuple of a resource and an effect to release it
Lifts an applicative into a resource.
Lifts an applicative into a resource. The resource has a no-op release.
the value to lift into a resource
Creates a resource from an acquiring effect and a release function.
Creates a resource from an acquiring effect and a release function.
the effect type in which the resource is acquired and released
the type of the resource
a function to effectfully acquire a resource
a function to effectfully release the resource returned by acquire
Lifts a pure value into a resource.
Lifts a pure value into a resource. The resouce has a no-op release.
the value to lift into a resource