
10 Mar
2014
10 Mar
'14
8:32 a.m.
On Mon, Mar 10, 2014 at 2:30 PM, Johan Tibell
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...
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.
+1. I've needed this in the past when working with process, and ended up writing POSIX-only code as a result.