[Haskell] crash unsafeperformio stm

Taral taralx at gmail.com
Wed Jul 12 01:18:03 EDT 2006


On 7/12/06, Taral <taralx at gmail.com> wrote:
> Because atomically doesn't like unsafePerformIO.

In more detail: "atomically" is not re-entrant. You could try something like:

main = a `seq` do ...

to make sure that you don't re-enter the STM subsystem and crash.

-- 
Taral <taralx at gmail.com>
"You can't prove anything."
    -- Gödel's Incompetence Theorem


More information about the Haskell mailing list