[Haskell-cafe] STM and random numbers

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


Hi,

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.

Thanks,

Chad


More information about the Haskell-Cafe mailing list