Portability | non-portable |
---|---|
Maintainer | Justin Bonnar <justinbonnar@gmail.com> |
Safe Haskell | Safe-Infered |
Primitive boxed mutable variables
Documentation
A MutVar
behaves like a single-element mutable array associated
with a primitive state token.
newMutVar :: PrimMonad m => a -> m (MutVar (PrimState m) a)Source
Create a new MutVar
with the specified initial value