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

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

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]

Properties

Versions 0.1.0.0, 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:29:43Z

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

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.