runST -package:random
Return the value computed by a state thread. The
forall
ensures that the internal state used by the
ST computation is
inaccessible to the rest of the program.
Return the value computed by an
ST computation. The
forall ensures that the internal state used by the
ST
computation is inaccessible to the rest of the program.
run an arrow with augmented state in the context of a simple state
arrow. An initial value for the new state component is needed.
This is useful, when running an arrow with an extra environment
component, e.g. for namespace handling in XML.
Deprecated: Use runSTT instead
Return the value computed by a state transformer computation. The
forall ensures that the internal state used by the
ST
computation is inaccessible to the rest of the program.
Unwrap a state monad computation as a function. (The inverse of
state.)
A safe way to create and work with a mutable array before returning an
immutable array for later perusal. This function avoids copying the
array before returning it - it uses unsafeFreeze internally,
but this wrapper is a safe interface to that function.
A safe way to create and work with an unboxed mutable array before
returning an immutable array for later perusal. This function avoids
copying the array before returning it - it uses unsafeFreeze
internally, but this wrapper is a safe interface to that function.
Run
StateT in the base monad
Since 1.0.11
Run
StateT in the base monad
Since 1.0.11
Run a block using a MonadLogger instance which prints to
stderr.
Run a block using a MonadLogger instance which prints to
stdout.