safe-freeze

Support for safely freezing multiple arrays in the ST monad.

https://github.com/reinerp/safe-freeze

Latest on Hackage:0.2.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed and maintained by Reiner Pope

Support for safely freezing multiple arrays in the ST monad. Developed in http://haskell.reinerpope.com/2009/09/making-runstarray-more-flexible-or.html.

The new monad is defined in Control.Monad.ST.Freeze. An example of its use is given in Data.Vector.Generic.Mutable.STFreeze. The module Data.STRef.Freeze is a reexports of Data.STRef but lifted to the new ST monad.