@hackage stateref0.2.1.1
Abstraction for things that work like IORef.
Categories
License
BSD-3-Clause
Maintainer
James Cook <mokus@deepbondi.net>
Links
- Homepage
- Documentation
- No source repository
- Security
Versions
Installation
Tested Compilers
Dependencies (3)
Dependents (6)
@hackage/acme-everything, @hackage/random-fu, @hackage/priority-queue, @hackage/event-monad, @hackage/Network-NineP, @hackage/random-source
Package Flags
usestm
(on by default)
Include instances for STM types
usetmvar
(on by default)
Include instances for TMVar (TMVar not available in hugs' stm implementation). I have been unable to make this flag's value depend on whether or not you're running hugs, so if you are, you'll just have to change it manually. It'd sure be nice if there were either an explicit backtrack command in cabal or if 'buildable:false' would trigger a backtrack. Or if I could say "default: not(impl(hugs))" for this flag. Note that this is irrelevant at the moment because I broke Hugs+STM support by adding MonadIO m => ... instances. If anyone really wants me to fix it, speak up - but those instances are pretty darn convenient.
A collection of type-classes generalizing the read/write/modify operations for stateful variables provided by things like IORef, TVar, &c.