Mads Lindstrøm <mads_lindstroem <at> yahoo.dk> writes: > > Hi > > I am trying to use "GHC as a library". From runStmt, I want to load and run > functions from a home-grown module. Lets call my home-grown module > HomeGrown.hs. > > I have tried to model my application after > http://haskell.org/sitewiki/images/1/17/Interactive-6.8.hs / > http://haskell.org/sitewiki/images/f/f9/MyPrelude.hs from > http://haskell.org/haskellwiki/GHC/As_a_library . This library loads > MyPrelude.hs and runs myPutStrLn & myGetLine + more. > > However, when I try to run code from HomeGrown.hs like: > > runStmt session "HomeGrown.foo" GHC.SingleStep > > runStmt keeps returning RunBreak (of type RunResult). From what I can read of > the WWW, RunBreak is related to some debugger and indicate that GHC > encountered > some breakpoint. However, I did not set any break points.
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. Greetings, Mads Lindstrøm _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users