runstmt within API
C.M.Brown
cmb21 at kent.ac.uk
Wed Apr 23 10:31:21 EDT 2008
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.
More information about the Glasgow-haskell-users
mailing list