persistent-refs

Haskell references backed by an IntMap for persistence and reversibility.

https://github.com/acfoltzer/persistent-refs

LTS Haskell 21.25:0.4
Stackage Nightly 2023-06-21:0.4
Latest on Hackage:0.4

See all snapshots persistent-refs appears in

BSD-3-Clause licensed by Adam C. Foltzer
Maintained by [email protected]
This version can be pinned in stack with:persistent-refs-0.4@sha256:cb6a232836741a1de8ad0997b937a48081bfb306c92c0414d31dd2f7d19f0275,1377

Module documentation for 0.4

This library provides support for a persistent version of the Control.Monad.ST.ST monad. Internally, references are backed by a Data.IntMap.IntMap, rather than being mutable variables on the heap. This decreases performance, but can be useful in certain settings, particularly those involving backtracking.