Proposal: Generalize the RandomGen and Random classes

malcolm.wallace malcolm.wallace at
Thu Oct 7 05:43:28 EDT 2010

If the random library is changed to use the language extensions MultiParamTypeClasses and FunctionalDependencies, then it will be removed from the Haskell 2011 standard libraries, since there is no proposal for Haskell 2011 to adopt either of those extensions.

On 07 Oct, 2010,at 09:35 AM, Simon Peyton-Jones <simonpj at> wrote:

In the proposal each instance of RandomGen produces values of a single type 'v', functionally dependent on the generator type 'g':
class RandomGen g v | g -> v where
next :: g -> (v, g)
-------------- next part --------------
Skipped content of type multipart/related

More information about the Libraries mailing list