diff --git a/System/Process.hs b/System/Process.hs index aec8786e..0fc34454 100644 --- a/System/Process.hs +++ b/System/Process.hs @@ -178,7 +178,8 @@ Note that @Handle@s provided for @std_in@, @std_out@, or @std_err@ via the @UseHandle@ constructor will be closed by calling this function. This is not always the desired behavior. In cases where you would like to leave the @Handle@ open after spawning the child process, please use 'createProcess_' -instead. +instead. All created @Handle@s are initially in text mode; if you need them +to be in binary mode then use 'hSetBinaryMode'. -} createProcess @@ -774,8 +775,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 +797,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)