Concise, overloaded accessors for IORef, STRef, TVar http://github.com/joeyadams/hs-monad-statevar
|Latest on Hackage:||0.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
put for state variables (
to make reading and writing more concise.
Inspired by the StateVar package by Sven Panne, with the following differences:
Supports variables in other monads besides
Does not provide concrete state variables (i.e. ones where you supply get and put callbacks). If you want this feature, please submit an issue.
Named "Control.Monad.StateVar" instead of "Data.StateVar", to avoid a module naming conflict.