https://github.com/brandonchinn178/resourcet-pool
Convert a Pool into an Acquire
https://github.com/brandonchinn178/resourcet-pool
Last synced: 4 months ago
JSON representation
Convert a Pool into an Acquire
- Host: GitHub
- URL: https://github.com/brandonchinn178/resourcet-pool
- Owner: brandonchinn178
- License: bsd-3-clause
- Created: 2020-11-23T04:55:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T00:30:19.000Z (over 4 years ago)
- Last Synced: 2025-03-09T00:13:13.649Z (4 months ago)
- Language: Haskell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
DEPRECATED: `unliftio-pool` should be sufficient for most use-cases
# `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
```hs
poolToAcquire :: Pool a -> Acquire a
```which pretty much does what it says on the box.