Plugins, dynamic loading and GHCi
Daniel Vainsencher <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cvs.ghc |
|---|---|
| Message-ID | <[email protected]> |
In SimplCore.lhs, addPlugin* is #ifdef GHCI. Is this dependency really necessary? plugins can be useful independently of the GHCi UI. From the wiki [1]: "Stage 1 does not support interactive execution (GHCi) and Template Haskell. The reason being that when running byte code we must dynamically link the packages, and only in stage 2 and later can we guarantee that the packages we dynamically link are compatible with those that GHC was built against (because they are the very same packages). " This does not seem to be a reason to not support plugins and dynamic linking in general in stage though, or am I missing something? Besides finding the dependency in this direction a bit strange, building stage 2 to debug plugin mechanism problems is a bit slow. Thanks, Daniel Vainsencher