The monad-var package

[ Tags: bsd3, control, library ] [ Propose Tags ]

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]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.1.1, 0.1.2.0
Dependencies base (>=4.7 && <5), stm (>=2.2 && <2.5), transformers (>=0.4 && <0.6) [details]
License BSD3
Copyright 2017 effectfully
Author effectfully
Maintainer effectfully@gmail.com
Category Control
Home page https://github.com/effectfully/monad-var#readme
Source repository head: git clone https://github.com/effectfully/monad-var
Uploaded Fri Dec 8 13:13:13 UTC 2017 by effectfully
Distributions NixOS:0.1.2.0
Downloads 246 total (246 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-12-08 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for monad-var-0.1.2.0

[back to package description]

monad-var

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.