[Haskell-cafe] loading an Haskell symbol at run-time

Donald Bruce Stewart dons at cse.unsw.edu.au
Tue Jun 26 22:06:15 EDT 2007

> Hi,
> to load an Haskell symbol at run-time is still necessary to use the load 
> functions from the hs-plugins library (System.Plugins.Load) or is there some 
> function in the GHC API that does the same job?

yes, definitely possible. i think Lemmih put an example on the wiki a
while ago. basically, ghc-api exposes the lower level api also used by
hs-plugins -- a nice project would be to provide the hs-plugins api
directly in ghc-api - avoiding the need for an external hs-plugins package.

-- Don

More information about the Haskell-Cafe mailing list