
23 Apr
2008
23 Apr
'08
10:31 a.m.
Hi Pepe,
The result of an expression is not a String, but an arbitrary value of some type.
Yes, sorry I forgot to mention that I will also be evaluating expressions of type Bool in this context.
One way to do that (untested): ...
Thanks for that. I had to modify it a bit to typecheck and compile, but it seems to work remarkably well!
stdout is to enable the flag -no-print-bind-result
It would be nice to wrap this code in a more friendly API. Hopefully the SoC project will take care of that !
Yes, indeed something like runStmtToString :: Session -> String -> IO (Maybe Sting) or something. Thanks, Chris.