[commit: ghc] master: base: Fix documentation for forkIOWithUnmask (1840121)

git at git.haskell.org git at git.haskell.org
Sun May 7 16:29:31 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1840121078718fb2a2fe5a7895501100517f627c/ghc

>---------------------------------------------------------------

commit 1840121078718fb2a2fe5a7895501100517f627c
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Fri May 5 16:47:00 2017 -0400

    base: Fix documentation for forkIOWithUnmask
    
    forkIOUnmasked has been deprecated for several years now. Update reference to
    it. See #4858 and #5546.


>---------------------------------------------------------------

1840121078718fb2a2fe5a7895501100517f627c
 libraries/base/GHC/IO.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libraries/base/GHC/IO.hs b/libraries/base/GHC/IO.hs
index 63b47ff..118ebea 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 ... at .  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
 



More information about the ghc-commits mailing list