safe-freeze-0.2: Support for safely freezing multiple arrays in the ST monad.

Portabilityportable
Stabilityexperimental
MaintainerReiner Pope <reiner.pope@gmail.com>
Safe HaskellSafe-Infered

Data.STRef.Freeze

Description

Description of this module goes here.

Synopsis

Documentation

data STRef s a

a value of type STRef s a is a mutable variable in state thread s, containing a value of type a

Instances

Eq (STRef s a) 

newSTRef :: MonadST st => a -> STNormal st s (STRef s a)Source

readSTRef :: MonadST st => STRef s a -> STRead st s aSource

writeSTRef :: MonadST st => STRef s a -> a -> STNormal st s ()Source

modifySTRef :: MonadST st => STRef s a -> (a -> a) -> STNormal st s ()Source