Proposal: overhaul System.Process

Simon Marlow marlowsd at
Tue Apr 29 14:46:45 EDT 2008

Brian Brunswick wrote:
> On Tue, Apr 29, 2008 at 6:14 PM, Simon Marlow <marlowsd at> wrote:
>> readProcessWithExitCode
>>    :: FilePath                 -- ^ command to run
>>    -> [String]                 -- ^ any arguments
>>    -> String                   -- ^ standard input
>>    -> IO (ExitCode,String)     -- ^ exitcode, and stdout + stderr
> Surely in this case one wants stdout in a separate String to stderr?
> If something fails in the middle of a long operation, I want just the
> error, doc!

Well yes, but maybe you also want to tally the stderr with the stdout, 
to see what was going on at the time the errors were generated (modulo 
buffering, of course).

How about two separate versions?  In which case, what should they be called?


More information about the Libraries mailing list