Proposal: add createPipe to base

Simon Marlow marlowsd at gmail.com
Mon Apr 7 09:19:58 UTC 2014


The link below is 404'd, but... I seem to remember that on Windows there 
are subtleties to do with whether the pipe ends are inheritable by 
subprocesses or not.  See mkAnonPipe() in the process package for how we 
deal with this already in process.

+1 for having it in process.

Cheers,
Simon

On 10/03/2014 12:30, Johan Tibell 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
>


More information about the Libraries mailing list