resourcet-pool: A small library to convert a Pool into an Acquire

[ bsd3, conduit, data, database, deprecated, library, network ] [ Propose Tags ]
Deprecated in favor of unliftio-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.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0.0
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), resource-pool (>=0.2.1.0 && <0.3), resourcet (>=1.1.2 && <2) [details]
License BSD-3-Clause
Author
Maintainer Brandon Chinn <brandonchinn178@gmail.com>
Category Data, Database, Network, Conduit
Home page https://github.com/brandonchinn178/resourcet-pool#readme
Bug tracker https://github.com/brandonchinn178/resourcet-pool/issues
Source repo head: git clone https://github.com/brandonchinn178/resourcet-pool
Uploaded by brandonchinn178 at 2020-11-23T17:33:04Z
Distributions
Reverse Dependencies 1 direct, 2 indirect [details]
Downloads 294 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-11-23 [all 1 reports]

Readme for resourcet-pool-0.1.0.0

[back to package description]

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.