BSD-3-Clause licensed by Sven Panne and Edward Kmett
Maintained by Sven Panne
This version can be pinned in stack with:StateVar-1.2@sha256:9ab3e4a0e252d28bc2f799c83e0725c3e23e8d3b722cff0fdb9822e64b6c16ac,1413

Module documentation for 1.2

Hackage Stackage LTS Stackage nightly Build Status



  • Added instances for ForeignPtr.

  • Relaxed upper version bound for stm.

  • Track recent move of Contravariant to base.

  • Corrected HasUpdate’s superclass constraint.

  • Removed a couple of redundant typeclass constraints.

  • Relaxed upper version bound for transformers.

  • Documentation changes only.

  • Melded the API of foreign-var 0.1 with the API of StateVar
  • Introduced HasUpdate, which permits a wider array of uses of these combinators, including usecases that must update atomically.
  • Switched to multi-parameter typeclasses. This permits Ptr a to be directly employed as an instance of HasGetter, HasUpdate, and HasSetter.

  • Infrastructure changes only.

  • Exposed GettableStateVar, SettableStateVar and StateVar constructors to make writing own instances possible.
  • Added Functor, Applicative and Monad instances for GettableStateVar.
  • Various infrastructure improvements.

  • Initial release.