
25 Dec
2010
25 Dec
'10
8:43 p.m.
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=187...