[commit: ghc] ghc-8.2: base: Fix documentation for forkIOWithUnmask (1cd69b9)

git at git.haskell.org git at git.haskell.org
Sun May 7 18:33:08 UTC 2017


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

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/1cd69b9b9d91e28ac2e60d902f0c5d4d9f51ca0f/ghc

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

commit 1cd69b9b9d91e28ac2e60d902f0c5d4d9f51ca0f
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.
    
    (cherry picked from commit 1840121078718fb2a2fe5a7895501100517f627c)


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

1cd69b9b9d91e28ac2e60d902f0c5d4d9f51ca0f
 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