Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brandonchinn178/resourcet-pool
Convert a Pool into an Acquire
https://github.com/brandonchinn178/resourcet-pool
Last synced: 25 days 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 (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T00:30:19.000Z (over 3 years ago)
- Last Synced: 2024-09-22T17:19:09.515Z (about 1 month ago)
- Language: Haskell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- 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`
![Hackage](https://img.shields.io/hackage/v/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.