[Haskell-cafe] STM and random numbers

Chad Scherrer chad.scherrer at gmail.com
Fri Jan 12 10:58:20 EST 2007


I'd like to be able to use randomIO, but I'm working within the
context of STM. Is there a way to get these working together happily?

For now, I guess I could kludgingly use unsafePerformIO inside STM
(it's the other way around that's not allowed, right?), but I would
need to be sure it doesn't get inlined.



More information about the Haskell-Cafe mailing list