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.


Dependenciesbase (>=3 && <5), MonadPrompt (==1.0.*), mtl (==1.1.*), random-source (==0.3.*), transformers (>=0.2 && <0.5) or
base (>=3 && <5), MonadPrompt (==1.0.*), mtl (==2.*), random-source (==0.3.*), transformers (>=0.2 && <0.5)
AuthorJames Cook <>
MaintainerJames Cook <>
Home page
Source repositoryhead: git clone
UploadedSun Sep 21 09:34:56 UTC 2014 by DominicSteinitz
DistributionsNixOS:, Stackage:
Downloads2664 total (165 in last 30 days)
StatusDocs uploaded by user
Build status unknown [no reports yet]




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

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


Maintainers' corner

For package maintainers and hackage trustees