Re: [Haskell-cafe] [random-fu] sampleRVar with StdGen in RWS?

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@steinitz.org http://idontgetoutmuch.wordpress.com Twitter: @idontgetoutmuch

Hi Dominic, Thanks for your answer! Here it goes: https://github.com/mokus0/random-fu/pull/43 I essentially copied and pasted State instances. (Not sure why monadRandom is used for PureMT, but not for StdGen, though.) - Sergiu Thus quoth dominic@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@steinitz.org http://idontgetoutmuch.wordpress.com Twitter: @idontgetoutmuch
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
participants (2)
-
dominic@steinitz.org
-
Sergiu Ivanov