
Hi, I wanted to write this prompt from the very beginning. A prompt to evaluate Haskell expressions... At first I couldn't get hs-plugins to compile. Then I could compile hs-plugin but I thought it was quite a difficult requirement for such a prompt. I knew about that mysterious ghc-api, something to come in the future... NO! GHC-API is there since 6.5, and can be easily used. So, here's the prompt. It's just the a proof of concept, right now. It uses the completions window to display the result and the ghc-api is linked from XMonad itself, which makes the xmonad binary a huge file. A lot of memory consumption is the obvious consequence. I have a small program that can evaluate expressions from outside of xmonad, but I'm not able to run it interactively from xmonad: http://www.haskell.org/pipermail/haskell-cafe/2007-August/031167.html I know how to compile Haskell code at runtime but I don't know how to run a process interactively...:( If you can help.... Follow the instruction of the attached modules (to be saved in XMonadContrib. BE CAREFUL and edit ghcPath to fit your system environment otherwise the prompt and XMonad will crash!!! (the is one of the many reasons I want an external application to run the statements!) Hope you'll enjoy. Andrea ps: no error reports for the time being. I repeat it: this is just a proof of concept. We need the external evaluator to work interactively with the prompt.