Subprocesses (was: [ANNOUNCE] shell-haskell 1.0.0)

Simon Marlow
Fri, 9 May 2003 13:33:02 +0100

> One thing I'd like to see would be a version that accepts a=20
> string as the
> standard input, and perhaps gives a lazy string as the=20
> standard output.  At
> least in its current incarnation, I don't see how this can=20
> trivially be
> implemented on top of launch, since it would generally fail on input
> strings longer than 4k in length due to buffering issues, as=20
> the write of
> the string will block when the buffer is full.

Just fork a thread to write to the input pipe.  Looking at the
implementation of POpen.popen, it appears that it could do exactly that.