STMonadTrans

A monad transformer version of the ST monad

Version on this page:0.3.4
LTS Haskell 22.36:0.4.8@rev:1
Stackage Nightly 2024-10-03:0.4.8@rev:1
Latest on Hackage:0.4.8@rev:1

See all snapshots STMonadTrans appears in

BSD-3-Clause licensed by Josef Svenningsson
Maintained by [email protected]
This version can be pinned in stack with:STMonadTrans-0.3.4@sha256:5475a690fde273d7daa9d89b87aca56ac1ee3c228aa52ea5af0ba01a110c30f2,1372

Module documentation for 0.3.4

Depends on 3 packages(full list with versions):
Used by 1 package in lts-7.24(full list with versions):

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.