On 10-12-25 10:47 AM, Andy Stewart wrote:
I use Linker.linkPackages and Linker.getHValue to get symbol value, but
looks Linker.getHValue can't get *update* value once current package has
linked in memory.
So how to make Linker.getHValue can get *update* value and don't need
install *new* package in Cabal/GHC database?
How to *reload* module with current version package?
Cannot be done. I suggest using no packages if you want a module
refreshed. This is means using GHC.setTargets and GHC.load (I personally
use loadWithLogger for improved error handling). You can still use
Linker.getHValue at the end.
See also
http://thread.gmane.org/gmane.comp.lang.haskell.glasgow.user/18742/focus=18749
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe