Portability | non-portable (uses Control.Monad.ST.Lazy) |
---|---|
Stability | experimental |
Maintainer | libraries@haskell.org |
Safe Haskell | Safe |
Mutable references in the lazy ST monad.
STRefs
a value of type STRef s a
is a mutable variable in state thread s
,
containing a value of type a
writeSTRef :: STRef s a -> a -> ST s ()Source
modifySTRef :: STRef s a -> (a -> a) -> ST s ()Source