[Haskell-cafe] [random-fu] sampleRVar with StdGen in RWS?
Sergiu Ivanov
sivanov at colimite.fr
Sat Aug 4 22:16:58 UTC 2018
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 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
> 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180805/31b3c52c/attachment.sig>
More information about the Haskell-Cafe
mailing list