haskell / mwc-random

A very fast Haskell library for generating high quality pseudo-random numbers.
http://hackage.haskell.org/package/mwc-random
BSD 2-Clause "Simplified" License
54 stars 25 forks source link

Preliminary PR for update to new random-1.2 #74

Closed lehins closed 4 years ago

lehins commented 4 years ago

Add StatefulGen and FrozenGen instances that are available in new random

lehins commented 4 years ago

I had to remove benchmarks from stack.yaml for now because some of the packages will not compile with new random, in particular I believe the uuid package needs fixing. Also many deps of benchmarks have upper bounds on random < 1.2, and adding allow-newer isn't that great of a fix

Shimuuar commented 4 years ago

Thanks!

I just wanted to start working on mwc-random over weekend. There's quite a bit of code that could be generalized to StatefulGen

lehins commented 4 years ago

Nice. Feel free to use changes in this PR as you wish. I opened it only because I had to add those instances anyways to ensure they actually work with random-1.2 and they do ;)