Copyright | Copyright (c) , Patrick Perry <patperry@stanford.edu> |
---|---|
License | BSD3 |
Maintainer | Patrick Perry <patperry@stanford.edu> |
Stability | experimental |
Safe Haskell | None |
Language | Haskell98 |
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)) -> Choose Source
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