[Haskell-beginners] Combining the Rand and State monads

Amy de Buitléir amy at nualeargais.ie
Thu Apr 5 23:55:11 CEST 2012

Brent Yorgey <byorgey <at> seas.upenn.edu> writes:
> Your problem seems to be the type you have given to modelT: it claims
> that it will work for *any* type g but this is not so; g must
> represent a pseudorandom number generator.  This works:

D'oh! A dumb mistake on my part. Thank you, Brent.

More information about the Beginners mailing list