Stability | experimental |
---|---|
Maintainer | Patrick Perry <patperry@stanford.edu> |
Mutable combinations in the ST
monad.
- data STChoose s
- runSTChoose :: (forall s. ST s (STChoose s)) -> Choose
- module Data.Choose.MChoose
Combinations
runSTChoose :: (forall s. ST s (STChoose s)) -> ChooseSource
A safe way to create and work with a mutable combination before returning an immutable one for later perusal. This function avoids copying the combination before returning it - it uses unsafeFreeze internally, but this wrapper is a safe interface to that function.
Overloaded mutable combination interface
module Data.Choose.MChoose