[Haskell-cafe] Detecting unused read handles? (was: File handles and pipes)

2008-10-18 Thread Stephen Hicks
On Sun, Oct 19, 2008 at 1:44 AM, Brandon S. Allbery KF8NH <[EMAIL PROTECTED]> wrote: > On 2008 Oct 19, at 1:37, Stephen Hicks wrote: >> >> I'm trying to understand how to get pipes working in Haskell, in >> particular with the revamped System.Process (though I've tried similar >> experiments with S

Re: [Haskell-cafe] Detecting unused read handles? (was: File handles and pipes)

2008-10-19 Thread Brandon S. Allbery KF8NH
On 2008 Oct 19, at 2:39, Stephen Hicks wrote: I've got one more question now. Suppose I want to do the same thing on the other side, with two processes *receiving* the data. Is there a way to tell whether the first process wants input, and if not, wait for the second process to do anything?

Re: [Haskell-cafe] Detecting unused read handles? (was: File handles and pipes)

2008-10-23 Thread Thomas Hartman
>> Specifically I'm trying to concatenate the output of two system calls >> into the input of a third. The following code does not get the job Can the left-fold enumerator described by oleg in http://okmij.org/ftp/Haskell/fold-stream.lhs and with more references at http://okmij.org/ftp/Haskell/

Re: [Haskell-cafe] Detecting unused read handles? (was: File handles and pipes)

2008-10-23 Thread Jason Dagit
On Thu, Oct 23, 2008 at 12:38 PM, Thomas Hartman <[EMAIL PROTECTED]> wrote: >>> Specifically I'm trying to concatenate the output of two system calls >>> into the input of a third. The following code does not get the job > > Can the left-fold enumerator described by oleg in > > http://okmij.org/ft