[commit: ghc] master: Fix docstring GHC.IO.Handle.FD.openFileBLocking (4c4a0a5)

git at git.haskell.org git at git.haskell.org
Thu Jan 21 20:16:51 UTC 2016


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/4c4a0a52d3ca5befd2a632544e9541703007e356/ghc

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

commit 4c4a0a52d3ca5befd2a632544e9541703007e356
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.


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

4c4a0a52d3ca5befd2a632544e9541703007e356
 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