Skip to content

Commit

Permalink
Merge pull request haskell#86 from ndmitchell/master
Browse files Browse the repository at this point in the history
Clarify Binary properties of the streams
  • Loading branch information
snoyberg authored Jan 22, 2017
2 parents 6d75056 + f044a18 commit 0524859
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions System/Process.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 0524859

Please sign in to comment.