The rvar package

[Tags:library, public-domain]

Random number generation based on modeling random variables by an abstract type (RVar) which can be composed and manipulated monadically and sampled in either monadic or "pure" styles.

The primary purpose of this library is to support defining and sampling a wide variety of high quality random variables. Quality is prioritized over speed, but performance is an important goal too.

In my testing, I have found it capable of speed comparable to other Haskell libraries, but still a fair bit slower than straight C implementations of the same algorithms.

Changes in Version bump for transformers dependency.


Versions 0.2,,,
Dependencies base (>=3 && <5), MonadPrompt (==1.0.*), mtl (==1.1.* || ==2.*), random-source (==0.3.*), transformers (>=0.2 && <0.4) [details]
License PublicDomain
Author James Cook <>
Maintainer James Cook <>
Stability stable
Category Math
Home page
Source repository head: git clone
Uploaded Fri Apr 13 12:12:02 UTC 2012 by JamesCook
Distributions Debian:, LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 4309 total (12 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]




mtl2mtl-2 has State, etc., as "type" rather than "newtype"EnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees