Hi!

I have a technical question:

basically I want to write something like this:

createPipe >>=  \ (ind, outd) ->
forkProcess >>= \ maybe_pid ->
case maybe_pid of
        Nothing ->  fdToHandle outd >>= \ new_stdin ->
                    runProcess "some_process" []
                        Nothing Nothing
                        (Just new_stdin)
                        Nothing
                        Nothing
                    >> exitImmediately ExitSuccess
        Just pid -> fdWrite ind "Bla bla bla" >>
                    continue_with_whatever_you_were_doing            

So what I want to do is, to start a subprocess which receives some input
from its stdin which is piped into by the main process.

The problem: There is no fdToHandle, is there???

-- 
Stephan Tobies, Student of Computer Science, RWTH Aachen
      mailto:[EMAIL PROTECTED]
## There is much pleasure to be gained
                   from useless knowledge - B. Russel ##

Reply via email to