> In local.glasgow-haskell-bugs, you wrote:
> > I've stripped down my program to produce an example. In the 
> process, the
> > problem disappeard a few times. I hope it shows up on your 
> machine. The
> > attached files reproduce it on my machine, but the exact 
> results vary
> > from run to run.
> 
> There's no bug in the libraries:
> The data is read lazily by 'getContents', then you invoke 
> 'forkProcess'.
> From this moment on, you should have two (heavy-weight) 
> processes competing
> for input from the same source (stdin).

Thanks Volker.  This just strengthens my feeling that lazy I/O is a Very
Bad Thing which should be avoided for non-trivial programs.
Alternatives are: hGetChar, hGetLine, hGetBuf, and hGetArray (the last
one will be in 5.04 and returns an IOUArray of Word8).

Cheers,
        Simon

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to