Ashley Yakeley wrote: > "To solve this the hs-plugins dynamic loader maintains > state storing a list of what modules and packages have > been loaded already. If load is called on a module that > is already loaded, or dependencies are attempted to load, > that have already been loaded, the dynamic loader ignores > these extra dependencies. This makes it quite easy to > write an application that will allows an arbitrary number > of plugins to be loaded." > <http://www.cse.unsw.edu.au/~dons/hs-plugins/hs-plugins-Z-H-6.html>
My recollection from using it a while ago is that if a module is used in the main program it will still be loaded once more in the plugin loader. This is because the plugin loader is basically an embedded copy of ghci without much knowledge of the host program's RTS. Cheers, Ganesh ============================================================================== Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html ============================================================================== _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe