STMonadTrans

A monad transformer version of the ST monad

https://github.com/josefs/STMonadTrans

Version on this page:0.4.6
LTS Haskell 22.14:0.4.8
Stackage Nightly 2024-03-28:0.4.8
Latest on Hackage:0.4.8

See all snapshots STMonadTrans appears in

BSD-3-Clause licensed by Josef Svenningsson
Maintained by [email protected], Andreas Abel
This version can be pinned in stack with:STMonadTrans-0.4.6@sha256:b6758c25642c8ea12a218ca6acd6457c1eed4b61f7fd9084ed78afec2a849ed1,2281

Module documentation for 0.4.6

Depends on 3 packages(full list with versions):
Used by 1 package in nightly-2021-10-22(full list with versions):

STMonadTrans

Hackage STMonadTrans on Stackage Nightly Stackage Build Status

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.6

  • Warning-free for all supported GHC versions (7.6 – 9.2).
  • Drop splitBase cabal flag (base >= 4 is already assumed).
  • Include README.md in distributed tarball.
  • Added maintainer Andreas Abel.

0.4.5

  • Don’t use default class methods in any MArray (STUArray s) instance. Thanks to Henri Jones.
  • Allow tasty up to and including 1.4.

0.4.4

  • Fix compilation for GHC 8.8.1. Thanks to Andrés Sicard-Ramírez.
  • Fix some tests and their dependencies. Thanks to Kirill Zaborsky.

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.