stateref-0.3: Abstraction for things that work like IORef.

Data.Accessor

Documentation

newtype Getter m a Source

Constructors

Getter (m a) 

Instances

Monad m => ReadRef (Getter m a) m a 

newtype Setter m a Source

Constructors

Setter (a -> m ()) 

Instances

Monad m => WriteRef (Setter m a) m a 

newtype Accessor m a Source

Constructors

Accessor (Getter m a, Setter m a) 

Instances

Monad m => ReadRef (Accessor m a) m a 
Monad m => WriteRef (Accessor m a) m a