resourcet-pool

A small library to convert a Pool into an Acquire, allowing one to use the resourcet framework with a resource exported as a Pool.


Keywords
conduit, data, database, library, network, Propose Tags , Data.Pool.Acquire
License
BSD-3-Clause
Install
cabal install resourcet-pool

Documentation

resourcet-pool

Hackage

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.