Dear experts,

we are currently developing a GUI for GHCi in Haskell using gtk2hs. We
have encountered a problem concerning the communication with GHCi. In the
current version we run GHCi in the background using the
"runInteractiveProcess" function from the module System.Process. The main
difficulty is that we don't see any possibility to determine when GHCi has
finished its computation and is awaiting user input, that is to say, we
don't know if there are any appropriate signals from GHCi that we could
somehow handle in Haskell. Our program already works as long as we just
execute some "standard" evaluations, but as soon as we do something
"extravagant" like e.g. nonterminating evaluations (say cycle [1,2,3]), or
certain IO-processes we can neither display the output up to the current
point of evaluation nor interrupt the calculation. We hope to have
described our problem precisely enough and would greatly appreciate any
helpful hint. Thanks a lot!

Greets

Matthias Stemmler and Bastian Hackler

University of Marburg, Germany
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to