Re: [Haskell-cafe] Re: Problem with reloading modules in GHC API

2010-07-21 Thread Hongmin Fan
This is so weird, if I wait long enough it works, but if I press enter fast enough, still get the wrong answer. On Wed, Jul 21, 2010 at 2:34 PM, Albert Y.C.Lai wrote: > Try adding more delay between the two loadings, e.g., make me press enter, > and hope I am not faster than a computer: > > main

Re: [Haskell-cafe] Re: Problem with reloading modules in GHC API

2010-07-21 Thread Hongmin Fan
Thanks! hint works good! On Tue, Jul 20, 2010 at 9:29 PM, Andy Stewart wrote: > Hongmin Fan writes: > > > Thanks Andy! Yes, I do need the second approach you listed here. I think > the plugin package actually > > uses GHC API to load > > too. > > > >

Re: [Haskell-cafe] Re: Problem with reloading modules in GHC API

2010-07-20 Thread Hongmin Fan
plugins-1.4.1 > Unfortunately, it's broken with ghc-6.12.x > > Before Don fix plugins package, i recommend you read Don's new paper > (http://www.cse.unsw.edu.au/~dons/papers/dons-phd-thesis.pdf<http://www.cse.unsw.edu.au/%7Edons/papers/dons-phd-thesis.pdf> > ) > You wi

[Haskell-cafe] Problem with reloading modules in GHC API

2010-07-19 Thread Hongmin Fan
Hi, I'm using GHC API to dynamically load some module, and evaluate it; and later change the content of the module, and re-evaluate it. But I found unless I delete the object file created by previous compilation, the module seems not reloaded. I have set ghcLink = LinkInMemory as an older post sug