runstmt within API

2008-04-23 Thread C.M.Brown
Hello, I want to use the ghc evaluator on the fly for some refactorings within HaRe. However, I notice that runstmt ::Session - String - IO RunResult. Is there anyway I can grab the result of the evaluated expression as a String (rather than it being outputted to the terminal)? It seems

Re: runstmt within API

2008-04-23 Thread pepe
Chris, On 23/04/2008, at 12:41, C.M.Brown wrote: Hello, I want to use the ghc evaluator on the fly for some refactorings within HaRe. However, I notice that runstmt ::Session - String - IO RunResult. Is there anyway I can grab the result of the evaluated expression as a String (rather