haskell-numerics / random-fu

A suite of Haskell libraries for representing, manipulating, and sampling random variables
42 stars 21 forks source link

Add MonadRandom instances for RWS. #43

Closed scolobb closed 5 years ago

scolobb commented 5 years ago

random-source defines MonadRandom instances for State StdGen (and StateT StdGen m), but not for RWS r w StdGen (nor RWST r w StdGen m). This pull request adds these instances by simple copying and pasting.