projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7019b0e
)
Deprecate Control.Exception.blocked in favour of getMaskingState
author
Bas van Dijk
<v.dijk.bas@gmail.com>
Thu, 3 Mar 2011 00:42:58 +0000
(
00:42
+0000)
committer
Bas van Dijk
<v.dijk.bas@gmail.com>
Thu, 3 Mar 2011 00:42:58 +0000
(
00:42
+0000)
GHC/IO.hs
patch
|
blob
|
history
diff --git
a/GHC/IO.hs
b/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 #)
1# -> MaskedUninterruptible
_ -> MaskedInterruptible #)
+{-# DEPRECATED blocked "use Control.Exception.getMaskingState instead" #-}
-- | returns True if asynchronous exceptions are blocked in the
-- current thread.
blocked :: IO Bool
-- | returns True if asynchronous exceptions are blocked in the
-- current thread.
blocked :: IO Bool