Deprecate Control.Exception.blocked in favour of getMaskingState
authorBas van Dijk <v.dijk.bas@gmail.com>
Thu, 3 Mar 2011 00:42:58 +0000 (00:42 +0000)
committerBas van Dijk <v.dijk.bas@gmail.com>
Thu, 3 Mar 2011 00:42:58 +0000 (00:42 +0000)
GHC/IO.hs

index 9fa7299..7295a2c 100644 (file)
--- a/GHC/IO.hs
+++ b/GHC/IO.hs
@@ -342,6 +342,7 @@ getMaskingState  = IO $ \s ->
                              1# -> MaskedUninterruptible
                              _  -> MaskedInterruptible #)
 
+{-# DEPRECATED blocked "use Control.Exception.getMaskingState instead" #-}
 -- | returns True if asynchronous exceptions are blocked in the
 -- current thread.
 blocked :: IO Bool