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

Data.MRef

Synopsis

Documentation

newDefaultMRef :: (DefaultMRef sr m a, NewMRef sr m a) => a -> m srSource

Create a m-reference and constrain its type to be the default reference type for the monad in which it is being created. See newMRef.

newDefaultEmptyMRef :: (DefaultMRef sr m a, NewMRef sr m a) => m srSource

Create an empty m-reference and constrain its type to be the default reference type for the monad in which it is being created. See newMRef.

takeDefaultMRef :: (DefaultMRef sr m a, TakeMRef sr m a) => sr -> m aSource

See takeMRef.

putDefaultMRef :: (DefaultMRef sr m a, PutMRef sr m a) => sr -> a -> m ()Source

See putMRef.