Loading plugin with ghc api

John O'Donnell jtod at dcs.gla.ac.uk
Mon Mar 23 05:42:31 EDT 2009


I would like to use the API for ghc, so that a running program can load 
a module (Foo.o) and use a function defined in that module. From the 
documentation available, it seems like thatś possible, but I can´t 
figure out how to do it. There is an example on the wiki, but the 
explanation just says the code is equivalent to ghc --make. That example 
does indeed work, but there is no hint as to whether the running program 
can then access anything defined in the module it has just loaded.

Is there any available documentation on how to load a plugin, or any 
working example somewhere?

Thanks in advance,
John O´Donnell

More information about the Glasgow-haskell-users mailing list