Unify STRef and IORef in plain Haskell 98

Version on this page:0.0.2
LTS Haskell 21.22:0.1
Stackage Nightly 2023-12-03:0.1
Latest on Hackage:0.1

See all snapshots data-ref appears in

BSD-3-Clause licensed and maintained by Henning Thielemann
This version can be pinned in stack with:data-ref-0.0.2@sha256:9323ed426a73042c80763f51fd589172ea2eb45ddaaf0ba0795705b7954585a8,1339

Module documentation for 0.0.2

This package provides a unique interface to both STRef and IORef. The advantage is that it is plain Haskell 98, the disadvantage is that we cannot use STRef and IORef as they are.

Our approach works with Haskell 98 single parameter type classes because we use an explicit dictionary, and we do not pass the references around but their accessors.

Similar packages: reference, ref-mtl, ref-fd, ref-tf.