STMonadTrans: A monad transformer version of the ST monad

[ bsd3, library, monads ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.2, 0.3, 0.3.1, 0.3.2, 0.3.3, 0.3.4, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8
Change log changelog.md
Dependencies array, base (>=4.6 && <5), fail, mtl (>=1.1), transformers (>=0.2.0.0 && <0.7) [details]
Tested with ghc ==9.8.0, ghc ==9.6.2, ghc ==9.4.7, ghc ==9.2.8, ghc ==9.0.2, ghc ==8.10.7, ghc ==8.8.4, ghc ==8.6.5, ghc ==8.4.4, ghc ==8.2.2, ghc ==8.0.2, ghc ==7.10.3
License BSD-3-Clause
Author Josef Svenningsson
Maintainer josef.svenningsson@gmail.com, Andreas Abel
Revised Revision 1 made by AndreasAbel at 2023-09-12T13:19:34Z
Category Monads
Home page https://github.com/josefs/STMonadTrans
Bug tracker https://github.com/josefs/STMonadTrans/issues
Source repo head: git clone https://github.com/josefs/STMonadTrans
Uploaded by AndreasAbel at 2023-05-18T15:56:17Z
Distributions Arch:0.4.8, Debian:0.4.4, Fedora:0.4.7, FreeBSD:0.3.3, LTSHaskell:0.4.8, NixOS:0.4.8, Stackage:0.4.8
Reverse Dependencies 8 direct, 10 indirect [details]
Downloads 37973 total (226 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-05-18 [all 1 reports]

Readme for STMonadTrans-0.4.7

[back to package description]

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.