unsafePerformIO

Alastair Reid alastair@reid-consulting-uk.ltd.uk
24 Sep 2002 17:59:00 +0100


Koen Claessen <koen@cs.chalmers.se> writes:
> However, I for example have no idea what happens when unsafely
> executing something that throws exceptions, performs a forkIO,
> something that uses MVar's, etc.

I won't dare to try to characterize the difference exactly but you
should expect very different behaviour between Hugs and GHC when using
unsafePerformIO with threads and exceptions.  The Hugs version of
unsafePerformIO isn't intended to receive as much abuse as the GHC
version whereas the GHC version has been (ab)used by large numbers of
people.

--
Alastair