data-ref

Unify STRef and IORef in plain Haskell 98 http://wiki.haskell.org/Mutable_variable

LTS Haskell 9.20:0.0.1.1
Stackage Nightly 2017-12-16:0.0.1.1
Latest on Hackage:0.0.1.1
BSD3 licensed and maintained by Henning Thielemann

Module documentation for 0.0.1.1

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.

Depends on 3 packages:
Used by 1 package:
comments powered byDisqus