[Haskell] crash unsafeperformio stm
Taral
taralx at gmail.com
Wed Jul 12 01:16:49 EDT 2006
On 7/11/06, Johannes Goetz <johago at web.de> wrote:
> i'm using ghc6 (apt-get install ghc6) on debian31. as far is i
> understand, the following program shouldn't crash. can somebody tell me
> why it does? thanks a lot. johannes.
Because atomically doesn't like unsafePerformIO.
For TVars there's newTVarIO, but I'm not sure about TMVars.
--
Taral <taralx at gmail.com>
"You can't prove anything."
-- Gödel's Incompetence Theorem
More information about the Haskell
mailing list