[Haskell-beginners] theStdGen unsafePerformIO
John Smith
voldermort at hotmail.com
Sun Jan 9 18:34:59 CET 2011
On 09/01/2011 18:16, Brent Yorgey wrote:
> With your definition, theStdGen is a computation that gives you a
> *new*, *different* IORef (containing yet another generator initialized
> with a seed of zero) every time you call it. The original definition
> with unsafePerformIO generates a single, global IORef which is
> accessed by every subsequent call to getStdGen.
How does it do this?
More information about the Beginners
mailing list