System.Process.ByteString.readProcess, readProcessWithExitCode

David Fox dsf at seereason.com
Fri Aug 10 21:13:41 CEST 2012


On Fri, Aug 10, 2012 at 12:01 AM, Bas van Dijk <v.dijk.bas at gmail.com> wrote:

> 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.
>

It looks like this will have to wait for bytestring 0.10, which has NFData
instances.  I guess there are ways to hack this...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20120810/ec285f6a/attachment.htm>


More information about the Libraries mailing list