[commit: packages/process] master: #82, note that all created handles are in text mode. (f044a18)

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


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

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

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

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

    #82, note that all created handles are in text mode.


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

f044a18aea16a46411b2639befdd1a9f6f7c4aaf
 System/Process.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/System/Process.hs b/System/Process.hs
index 1276f9a..0fc3445 100644
--- a/System/Process.hs
+++ b/System/Process.hs
@@ -178,7 +178,8 @@ Note that @Handle at 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 at s are initially in text mode; if you need them
+to be in binary mode then use 'hSetBinaryMode'.
 
 -}
 createProcess



More information about the ghc-commits mailing list