1 Feb 2008 10:27
Re: Using "GHC as a library" with own functions makes runStmt return RunBreak
Simon Marlow <simonmarhaskell <at> gmail.com>
2008-02-01 09:27:13 GMT
2008-02-01 09:27:13 GMT
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
RSS Feed