[GHC] #9149: Description of openFileBlocking is wrong
#9149: Description of openFileBlocking is wrong ------------------------------------+------------------------------------- Reporter: edsko | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Documentation | Version: 7.8.2 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- The documentation states: ''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. '' but I think this is the wrong way around, and should be: ''Like openFile, but opens the file in ordinary blocking mode. 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 appears. '' -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9149> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9149: Description of openFileBlocking is wrong -------------------------------------+------------------------------------- Reporter: edsko | Owner: Type: bug | Status: merge Priority: normal | Milestone: 8.0.1 Component: Documentation | Version: 7.8.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => merge * milestone: => 8.0.1 Comment: You're right, I tested it. Fixed in commit 4c4a0a52d3ca5befd2a632544e9541703007e356 {{{ Author: Thomas Miedema <thomasmiedema@gmail.com> Date: Thu Jan 21 21:16:05 2016 +0100 Fix docstring GHC.IO.Handle.FD.openFileBLocking Fixes #4248. }}} That ticket number should have been #9149. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9149#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#9149: Description of openFileBlocking is wrong -------------------------------------+------------------------------------- Reporter: edsko | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Documentation | Version: 7.8.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged to `ghc-8.0` as ede37fd29e6dc1b4a832172b29eee3baff165306. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9149#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC