Abstraction for things that work like IORef.

Version on this page:0.3
LTS Haskell 13.22:0.3
Stackage Nightly 2019-05-23:0.3
Latest on Hackage:0.3

See all snapshots stateref appears in

LicenseRef-PublicDomain licensed and maintained by James Cook

Module documentation for 0.3

There are no documented modules for this package.

A collection of type-classes generalizing the read/write/modify operations for stateful variables provided by things like IORef, TVar, &c. Note that The interface has changed a bit from the 0.2.* version. "*Ref" functions are now called "*Reference" and new "*Ref" function exist with simpler signatures. The new Ref existential type provides a convenient monad-indexed reference type, and the HasRef class indicates monads for which there is a default reference type for every referent.

Depends on 3 packages:
comments powered byDisqus