STMonadTrans

A monad transformer version of the ST monad

Version on this page:0.4.3
LTS Haskell 8.12:0.4.3
Stackage Nightly 2017-04-28:0.4.3
Latest on Hackage:0.4.3
BSD3 licensed by Josef Svenningsson
Maintained by josef.svenningsson@gmail.com

Module documentation for 0.4.3

A monad transformer version of the ST monad Warning! This monad transformer should not be used with monads that can contain multiple answers, like the list monad. The reason is that the state token will be duplicated across the different answers and this causes Bad Things to happen (such as loss of referential transparency). Safe monads include the monads State, Reader, Writer, Maybe and combinations of their corresponding monad transformers.

Changes

0.4.3

  • Fix compilation for GHC 7.6.3. Thanks to Andrés Sicard-Ramírez.
  • Export unsafe array operations

0.4.2

  • Deprecate runST and unsafeSTToIO in favor of runSTT and unsafeSTTToIO.
  • Added INLINE pragmas

0.4.1

  • Add Applicative constraints to be compatible with GHC 7.8.4
  • Add changelog

0.4

  • New library structure, based on liftST. It reuses more code and types from the standard ST monad. Thanks to @wyager for liftST.
  • Instances for MArray
Depends on:
Used by 3 packages:
comments powered byDisqus