summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/IO.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2017-05-05 16:47:00 -0400
committerBen Gamari <ben@smart-cactus.org>2017-05-07 12:30:25 -0400
commit1cd69b9b9d91e28ac2e60d902f0c5d4d9f51ca0f (patch)
treeace24536558ca314aaefa0f2b34932cff95e0512 /libraries/base/GHC/IO.hs
parent6723c2fdf3ce39227578d8da890969dc4ea836e7 (diff)
downloadhaskell-ghc-8.2.1-rc2.tar.gz
base: Fix documentation for forkIOWithUnmaskghc-8.2.1-rc2
forkIOUnmasked has been deprecated for several years now. Update reference to it. See #4858 and #5546. (cherry picked from commit 1840121078718fb2a2fe5a7895501100517f627c)
Diffstat (limited to 'libraries/base/GHC/IO.hs')
-rw-r--r--libraries/base/GHC/IO.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/GHC/IO.hs b/libraries/base/GHC/IO.hs
index 63b47ff738..118ebeaeed 100644
--- a/libraries/base/GHC/IO.hs
+++ b/libraries/base/GHC/IO.hs
@@ -335,7 +335,7 @@ onException io what = io `catchException` \e -> do _ <- what
-- use @mask_ $ forkIO ...@. This is particularly useful if you need
-- to establish an exception handler in the forked thread before any
-- asynchronous exceptions are received. To create a a new thread in
--- an unmasked state use 'Control.Concurrent.forkIOUnmasked'.
+-- an unmasked state use 'Control.Concurrent.forkIOWithUnmask'.
--
mask :: ((forall a. IO a -> IO a) -> IO b) -> IO b