
On 9 August 2012 20:33, David Fox
On Thu, Aug 9, 2012 at 9:28 AM, David Fox
wrote: Attached is a module containing ByteString analogs of two functions from System.Process: readProcess and readProcessWithExitCode. I use these a lot and would love to see them incorporated into a standard library, though I'm not sure which one.
Sorry, didn't know attachments were excluded. The two functions are available in the Unixutils library: http://hackage.haskell.org/packages/archive/Unixutils/1.50/doc/html/System-U...
Some time ago I fixed some asynchronous exception bugs in those functions. Take a look at the current implementation: https://github.com/ghc/packages-process/blob/master/System/Process.hs#L392 You might want to incorporate these changes into your library. Cheers, Bas