STRef +Data

module Data.STRef
base Data.STRef
Mutable references in the (strict) ST monad.
data STRef s a
base Data.STRef, base Data.STRef.Lazy
a value of type STRef s a is a mutable variable in state thread s, containing a value of type a
modifySTRef :: STRef s a -> (a -> a) -> ST s ()
base Data.STRef.Lazy
modifySTRef :: STRef s a -> (a -> a) -> ST s ()
base Data.STRef
Mutate the contents of an STRef
newSTRef :: a -> ST s (STRef s a)
base Data.STRef.Lazy
newSTRef :: a -> ST s (STRef s a)
base Data.STRef
Build a new STRef in the current state thread
readSTRef :: STRef s a -> ST s a
base Data.STRef.Lazy
readSTRef :: STRef s a -> ST s a
base Data.STRef
Read the value of an STRef
writeSTRef :: STRef s a -> a -> ST s ()
base Data.STRef.Lazy
writeSTRef :: STRef s a -> a -> ST s ()
base Data.STRef
Write a new value into an STRef