dynamic loading with ghc api?

2011-04-07 Thread Rob Nikander
Hi all, I'd like to load a value from a .o file. I've got... import ObjLink main = do initObjLinker loadObj Thing.o resolveObjs Just ptr - lookupSymbol Thing_value_closure Is that the correct symbol to load for the name value in module Thing? And if so, how to I get the haskell value

Re: dynamic loading with ghc api?

2011-04-07 Thread Rob Nikander
, Rob Nikander rob.nikan...@gmail.com wrote: Hi all, I'd like to load a value from a .o file.  I've got... import ObjLink main = do  initObjLinker  loadObj Thing.o  resolveObjs  Just ptr - lookupSymbol Thing_value_closure Is that the correct symbol to load for the name value in module