convering Fds to Handles

Jens Petersen petersen@redhat.com
17 May 2002 15:44:34 +0900


Sebastien Carlier <sebc@wise-language.org> writes:

> > Specifically, I'd like to use "pipe" from the Posix
> > library to create a pipe and then pass one end of it to
> > runProcess as its stdin.

You may want to take a look at POpen (available from hslibs
cvs, or http://www.01.246.ne.jp/~juhp/haskell/popenhs/).
Process output works well, though it still has some problems
with lazy process input.

> I have had problems with pipes and runProcess, now I am using
> forkProcess/executeFile/getProcessStatus and it works properly.

Non-lazy IO presumably?  Do you have an example you can show?

Jens