You might get more answers to this sort of question on the haskell-cafe list. Even there, I think you might need to ask whoever the authors were for a question like this :-)
On Sun, Jan 9, 2011 at 9:55 AM, John Smith <volderm...@hotmail.com> wrote: > Why does theStdGen require unsafePerformIO? I recompiled the Random module > with > > theStdGen :: IO (IORef StdGen) > theStdGen = do > rng <- mkStdRNG 0 > newIORef rng > > The implementations of a few functions needed to change slightly (to extract > the IORef from IO), but no other type signatures needed changing, and > nothing blew up. > > > _______________________________________________ > Beginners mailing list > beginn...@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe