monad-var: Generic operations over variables
The aim of this library is to provide a unified set of operations (new
, read
, write
, swap
, various strict mutate*
functions and their derivatives (like mutate-and-return-the-old-value) and a certain interface for MVar
-like things) over all common variable types: IORef
, STRef s
, MVar
, TVar
, TMVar
.
When possible type classes are generalized to be over abstract containers rather than variables: e.g. it'd make sense to implement MonadRead TChan
and MonadMutate_ Vector
instances, but no such instances are provided right now.
There are also some lenses to be described in an upcoming blog post.
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- monad-var-0.2.2.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.1.1, 0.1.2.0, 0.2.0.0, 0.2.1.0, 0.2.2.0 |
---|---|
Dependencies | base (>=4.7 && <6), base-compat (>=0.9.0), stm (>=2.2), transformers (>=0.4) [details] |
License | BSD-3-Clause |
Author | effectfully |
Maintainer | effectfully@gmail.com |
Home page | https://github.com/effectfully/monad-var#readme |
Source repo | head: git clone https://github.com/effectfully/monad-var |
Uploaded | by effectfully at 2021-03-06T13:08:23Z |
Distributions | NixOS:0.2.2.0 |
Reverse Dependencies | 1 direct, 0 indirect [details] |
Downloads | 4475 total (14 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2021-03-06 [all 1 reports] |