Description
A small library to convert a Pool into an Acquire.
Description
A small library to convert a Pool into an Acquire, allowing one to use the resourcet
framework with a resource exported as a Pool
.
README.md
resourcet-pool
resource-pool
provides the Pool
abstraction, which performs resource allocation. Independently, resourcet
provides the Acquire
abstraction, which also performs resource allocation, but also plugs into the MonadResource
type class. This library provides a way of converting a Pool
into an Acquire
, if using Acquire
functions is easier for your application.
This library exports a single function
poolToAcquire :: Pool a -> Acquire a
which pretty much does what it says on the box.