[Haskell-cafe] [random-fu] sampleRVar with StdGen in RWS?
sivanov at colimite.fr
Sat Aug 4 22:16:58 UTC 2018
Thanks for your answer! Here it goes:
I essentially copied and pasted State instances. (Not sure why
monadRandom is used for PureMT, but not for StdGen, though.)
Thus quoth dominic at steinitz.org on Sat Aug 04 2018 at 12:03 (+0300):
>> > I suppose you could write an orphan instance for RWST if you really
>> > wanted to.
>> That's what I'll most probably do for my small project, but I was
>> wondering whether it made sense to make a pull request to random-fu. To
>> me, having a MonadRandom for both StateT and RWST seems very natural.
> Please do make a PR - I will accept it immediately :)
> Dominic Steinitz
> dominic at steinitz.org
> Twitter: @idontgetoutmuch
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 487 bytes
Desc: not available
More information about the Haskell-Cafe