-- * Asynchronous Exceptions
-- ** Asynchronous exception control
-
mask,
+#ifndef __NHC__
mask_,
uninterruptibleMask,
uninterruptibleMask_,
MaskingState(..),
getMaskingState,
+#endif
-- ** (deprecated) Asynchronous exception control
assert True x = x
assert False _ = throw (toException (UserError "" "Assertion failed"))
+mask :: ((IO a-> IO a) -> IO a) -> IO a
+mask action = action restore
+ where restore act = act
+
#endif
#ifdef __HUGS__