[commit: packages/process] master: #82, remove the incorrect notes that Handle's are in binary mode. (77df92f)

git at git.haskell.org git at git.haskell.org
Wed Jul 19 21:17:54 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/77df92f15db270a557cad6f3105fd09e3ddb6d97/process

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

commit 77df92f15db270a557cad6f3105fd09e3ddb6d97
Author: Neil Mitchell <ndmitchell at gmail.com>
Date:   Sun Jan 22 15:39:25 2017 +0000

    #82, remove the incorrect notes that Handle's are in binary mode.


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

77df92f15db270a557cad6f3105fd09e3ddb6d97
 System/Process.hs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/System/Process.hs b/System/Process.hs
index aec8786..1276f9a 100644
--- a/System/Process.hs
+++ b/System/Process.hs
@@ -774,8 +774,7 @@ runProcess cmd args mb_cwd mb_env mb_stdin mb_stdout mb_stderr = do
 
 {- | Runs a command using the shell, and returns 'Handle's that may
      be used to communicate with the process via its @stdin@, @stdout@,
-     and @stderr@ respectively. The 'Handle's are initially in binary
-     mode; if you need them to be in text mode then use 'hSetBinaryMode'.
+     and @stderr@ respectively.
 -}
 runInteractiveCommand
   :: String
@@ -797,9 +796,6 @@ runInteractiveCommand string =
 
 >   (inp,out,err,pid) <- runInteractiveProcess "..."
 >   forkIO (hPutStr inp str)
-
-    The 'Handle's are initially in binary mode; if you need them to be
-    in text mode then use 'hSetBinaryMode'.
 -}
 runInteractiveProcess
   :: FilePath                   -- ^ Filename of the executable (see 'RawCommand' for details)



More information about the ghc-commits mailing list