Proposal: add createPipe to base

Edward Kmett ekmett at gmail.com
Mon Mar 10 19:29:49 UTC 2014


+1 for me.

I have a slight preference for putting it in process over base given that
we're considering a mass exodus of material from base in a couple of years
and it'd be one more thing to move, but it is a very slight preference.

-Edward




On Mon, Mar 10, 2014 at 8:30 AM, Johan Tibell <johan.tibell at gmail.com>wrote:

> I've written a cross-platform* implementation of the pipe() syscall,
> currently for use within Cabal:
>
> createPipe :: IO (Handle, Handle)
>
> https://github.com/haskell/cabal/blob/master/Cabal/tests/Distribution/Compat/CreatePipe.hsc
>
> It's a bit of a shame to leave it in Cabal as it's generally useful.
>
> I propose we add it to System.IO. Note that we'd have to copy the 5 lines
> in System.Posix.IO.createPipe into base as the above implementation would
> otherwise depend on the unix package.
>
> Discussion period: 3 weeks.
>
> * Only tested on OS X, Windows, and Linux.
>
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140310/27490c4d/attachment.html>


More information about the Libraries mailing list