req for code

Simon Marlow simonmar at
Fri Oct 15 04:21:34 EDT 2004

On 14 October 2004 13:06, Benedict Kavanagh wrote:

> Writing some system code. Want to do it in Haskell. As a head start
> boost does anybody have any code that
> uses forkprocess to fork, creates a pipe between parent/child and dups
> child's end to be standard out for the child  and then  have the
> parent do something based on something the child says.
> I'll just go ahead and write it but I was wondering how integrated
> IO() stuff is with low level file calls. An example would help.
> Anyone got any code that I could look at? Is there any code in any
> library or other code that does this kind of stuff?

The new System.Process library does the setting up of pipes and forking
business for you, all behind a portable API.  It'll be in GHC 6.4, but
there's a version here which might work for you with GHC 6.2.2:


More information about the Glasgow-haskell-users mailing list