[commit: ghc] ghc-8.0: Fix docstring GHC.IO.Handle.FD.openFileBLocking (ede37fd)

git at git.haskell.org git at git.haskell.org
Fri Jan 22 12:20:07 UTC 2016


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

On branch  : ghc-8.0
Link       : http://ghc.haskell.org/trac/ghc/changeset/ede37fd29e6dc1b4a832172b29eee3baff165306/ghc

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

commit ede37fd29e6dc1b4a832172b29eee3baff165306
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Thu Jan 21 21:16:05 2016 +0100

    Fix docstring GHC.IO.Handle.FD.openFileBLocking
    
    Fixes #4248.
    
    (cherry picked from commit 4c4a0a52d3ca5befd2a632544e9541703007e356)


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

ede37fd29e6dc1b4a832172b29eee3baff165306
 libraries/base/GHC/IO/Handle/FD.hs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libraries/base/GHC/IO/Handle/FD.hs b/libraries/base/GHC/IO/Handle/FD.hs
index 181aad7..b2c971c 100644
--- a/libraries/base/GHC/IO/Handle/FD.hs
+++ b/libraries/base/GHC/IO/Handle/FD.hs
@@ -153,9 +153,9 @@ openFile fp im =
     (\e -> ioError (addFilePathToIOError "openFile" fp e))
 
 -- | Like 'openFile', but opens the file in ordinary blocking mode.
--- This can be useful for opening a FIFO for reading: if we open in
--- non-blocking mode then the open will fail if there are no writers,
--- whereas a blocking open will block until a writer appears.
+-- This can be useful for opening a FIFO for writing: if we open in
+-- non-blocking mode then the open will fail if there are no readers,
+-- whereas a blocking open will block until a reader appear.
 --
 -- @since 4.4.0.0
 openFileBlocking :: FilePath -> IOMode -> IO Handle



More information about the ghc-commits mailing list