ArrayRef-0.1.3.1: Unboxed references, dynamic arrays and more
Source code
Contents
Index
Data.Ref.LazyST
Portability
GHC/Hugs
Stability
experimental
Maintainer
Bulat Ziganshin <Bulat.Ziganshin@gmail.com>
Contents
STRefs
STURefs
Description
Mutable boxed and unboxed references in the lazy ST monad.
Synopsis
STRef
(STRef)
newSTRef
readSTRef
writeSTRef
modifySTRef
data
STURef
s a
newSTURef
::
Unboxed
a => a ->
ST
s (
STURef
s a)
readSTURef
::
Unboxed
a =>
STURef
s a ->
ST
s a
writeSTURef
::
Unboxed
a =>
STURef
s a -> a ->
ST
s
()
modifySTURef
::
Unboxed
a =>
STURef
s a -> (a -> a) ->
ST
s
()
STRefs
STRef
(STRef)
newSTRef
readSTRef
writeSTRef
modifySTRef
STURefs
data
STURef
s a
Source
Unboxed references in ST monad
Instances
Typeable2
STURef
URef
(
ST
s) (
STURef
s)
Unboxed
a =>
Mutable
(
ST
s) (
STURef
s a) a
newSTURef
::
Unboxed
a => a ->
ST
s (
STURef
s a)
Source
readSTURef
::
Unboxed
a =>
STURef
s a ->
ST
s a
Source
writeSTURef
::
Unboxed
a =>
STURef
s a -> a ->
ST
s
()
Source
modifySTURef
::
Unboxed
a =>
STURef
s a -> (a -> a) ->
ST
s
()
Source
Produced by
Haddock
version 2.4.2