<div class="gmail_quote">On Fri, Aug 10, 2012 at 12:01 AM, Bas van Dijk <span dir="ltr"><<a href="mailto:v.dijk.bas@gmail.com" target="_blank">v.dijk.bas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 9 August 2012 20:33, David Fox <<a href="mailto:dsf@seereason.com">dsf@seereason.com</a>> wrote:<br>
> On Thu, Aug 9, 2012 at 9:28 AM, David Fox <<a href="mailto:dsf@seereason.com">dsf@seereason.com</a>> wrote:<br>
>><br>
>> Attached is a module containing ByteString analogs of two functions from<br>
>> System.Process: readProcess and readProcessWithExitCode. I use these a lot<br>
>> and would love to see them incorporated into a standard library, though I'm<br>
>> not sure which one.<br>
><br>
><br>
> Sorry, didn't know attachments were excluded. The two functions are<br>
> available in the Unixutils library:<br>
> <a href="http://hackage.haskell.org/packages/archive/Unixutils/1.50/doc/html/System-Unix-Process.html" target="_blank">http://hackage.haskell.org/packages/archive/Unixutils/1.50/doc/html/System-Unix-Process.html</a><br>
<br>
</div></div>Some time ago I fixed some asynchronous exception bugs in those<br>
functions. Take a look at the current implementation:<br>
<br>
<a href="https://github.com/ghc/packages-process/blob/master/System/Process.hs#L392" target="_blank">https://github.com/ghc/packages-process/blob/master/System/Process.hs#L392</a><br>
<br>
You might want to incorporate these changes into your library.<br></blockquote><div><br></div><div>It looks like this will have to wait for bytestring 0.10, which has NFData instances. I guess there are ways to hack this...</div>
</div><br>