System.Process.ByteString.readProcess, readProcessWithExitCode
Bas van Dijk
v.dijk.bas at gmail.com
Fri Aug 10 09:01:25 CEST 2012
On 9 August 2012 20:33, David Fox <dsf at seereason.com> wrote:
> On Thu, Aug 9, 2012 at 9:28 AM, David Fox <dsf at seereason.com> 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-Unix-Process.html
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
More information about the Libraries
mailing list