monad-statevar: Concise, overloaded accessors for IORef, STRef, TVar

[ bsd3, data, library ] [ Propose Tags ]

Overloaded get and put for state variables (IORef, STRef, TVar) to make reading and writing more concise.

Inspired by the StateVar package by Sven Panne, with the following differences:

  • Supports variables in other monads besides IO (e.g. TVar, STRef).

  • Provides non-infix put, modify, etc.

  • Does not provide concrete state variables (i.e. ones where you supply get and put callbacks). If you want this feature, please submit an issue.

  • Named "Control.Monad.StateVar" instead of "Data.StateVar", to avoid a module naming conflict.

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1
Dependencies base (>=4.3 && <5), transformers [details]
License BSD-3-Clause
Copyright Copyright (c) Joseph Adams 2013
Author Joey Adams
Maintainer joeyadams3.14159@gmail.com
Category Data
Home page http://github.com/joeyadams/hs-monad-statevar
Bug tracker http://github.com/joeyadams/hs-monad-statevar/issues
Source repo head: git clone git://github.com/joeyadams/hs-monad-statevar.git
Uploaded by JoeyAdams at 2013-02-11T05:26:48Z
Distributions NixOS:0.1
Downloads 1118 total (0 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]