<div class="gmail_quote">On Fri, Aug 10, 2012 at 12:01 AM, Bas van Dijk <span dir="ltr">&lt;<a href="mailto:v.dijk.bas@gmail.com" target="_blank">v.dijk.bas@gmail.com</a>&gt;</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 &lt;<a href="mailto:dsf@seereason.com">dsf@seereason.com</a>&gt; wrote:<br>
&gt; On Thu, Aug 9, 2012 at 9:28 AM, David Fox &lt;<a href="mailto:dsf@seereason.com">dsf@seereason.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Attached is a module containing ByteString analogs of two functions from<br>
&gt;&gt; System.Process: readProcess and readProcessWithExitCode.  I use these a lot<br>
&gt;&gt; and would love to see them incorporated into a standard library, though I&#39;m<br>
&gt;&gt; not sure which one.<br>
&gt;<br>
&gt;<br>
&gt; Sorry, didn&#39;t know attachments were excluded.  The two functions are<br>
&gt; available in the Unixutils library:<br>
&gt; <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>