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

Pasqualino 'Titto' Assini tittoassini at gmail.com
Wed Jun 27 04:51:44 EDT 2007

On Wednesday 27 June 2007 03:06:15 Donald Bruce Stewart wrote:
> tittoassini:
> > 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

Hi Don, thanks for the answer.

I checked again the http://haskell.org/haskellwiki/GHC/As_a_library page on 
the wiki and there are examples of interactive evaluation but I cannot find 
an example of loading a symbol from a compiled module.

If anyone can provide one, I will be happy to test it and add it to the "GHC 
as a library" Wiki page.



More information about the Haskell-Cafe mailing list