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

[ bsd3, conduit, data, database, library, network ] [ Propose Tags ]

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]
Versions [faq] 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 NixOS:0.1.0.0
Downloads 47 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2020-11-23 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


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.