Using "GHC as a library" with own functions makes runStmt return
RunBreak
Simon Marlow
simonmarhaskell at gmail.com
Fri Feb 1 04:27:13 EST 2008
Mads Lindstrøm wrote:
> For those interested I figured out how to avoid the RunBreak -returns.
> Use RunToCompletion in stead of SingleStep in the application of runStmt.
> I guess Interactive-6.8.hs should also use SingleStep.
SingleStep is what GHCi uses to implement :step - that is, it runs until
the next breakpoint location and then stops, returning RunBreak to the
caller of runStmt. To run the whole statement, what you want is
RunToCompletion, as you discovered.
Cheers,
Simon
More information about the Glasgow-haskell-users
mailing list