Extended the plugin system to run plugins on more representations
Extend GHC plugins to access parsed, type checked representation, interfaces that are loaded. And splices that are evaluated. The goal is to enable development tools to access the GHC representation in the pre-existing build environment. See the full proposal here: https://ghc.haskell.org/trac/ghc/wiki/ExtendedPluginsProposal Reviewers: goldfire, bgamari, ezyang, angerman, mpickering Reviewed By: mpickering Subscribers: ezyang, angerman, mpickering, ulysses4ever, rwbarton, thomie, carter GHC Trac Issues: #14709 Differential Revision: https://phabricator.haskell.org/D4342
Showing
- compiler/iface/LoadIface.hs 4 additions, 1 deletioncompiler/iface/LoadIface.hs
- compiler/main/HscMain.hs 68 additions, 36 deletionscompiler/main/HscMain.hs
- compiler/main/Plugins.hs 61 additions, 8 deletionscompiler/main/Plugins.hs
- compiler/simplCore/CoreMonad.hs-boot 37 additions, 0 deletionscompiler/simplCore/CoreMonad.hs-boot
- compiler/typecheck/TcSplice.hs 6 additions, 2 deletionscompiler/typecheck/TcSplice.hs
- docs/users_guide/extending_ghc.rst 203 additions, 0 deletionsdocs/users_guide/extending_ghc.rst
- testsuite/tests/plugins/Makefile 28 additions, 0 deletionstestsuite/tests/plugins/Makefile
- testsuite/tests/plugins/MetaRemoveHelper.hs 6 additions, 0 deletionstestsuite/tests/plugins/MetaRemoveHelper.hs
- testsuite/tests/plugins/PluginFilteredExport.hs 8 additions, 0 deletionstestsuite/tests/plugins/PluginFilteredExport.hs
- testsuite/tests/plugins/QuasiQuotation.hs 11 additions, 0 deletionstestsuite/tests/plugins/QuasiQuotation.hs
- testsuite/tests/plugins/all.T 36 additions, 0 deletionstestsuite/tests/plugins/all.T
- testsuite/tests/plugins/plugins04.stderr 1 addition, 1 deletiontestsuite/tests/plugins/plugins04.stderr
- testsuite/tests/plugins/plugins09.hs 1 addition, 0 deletionstestsuite/tests/plugins/plugins09.hs
- testsuite/tests/plugins/plugins09.stdout 8 additions, 0 deletionstestsuite/tests/plugins/plugins09.stdout
- testsuite/tests/plugins/plugins10.hs 9 additions, 0 deletionstestsuite/tests/plugins/plugins10.hs
- testsuite/tests/plugins/plugins10.stdout 18 additions, 0 deletionstestsuite/tests/plugins/plugins10.stdout
- testsuite/tests/plugins/plugins11.hs 2 additions, 0 deletionstestsuite/tests/plugins/plugins11.hs
- testsuite/tests/plugins/plugins11.stdout 8 additions, 0 deletionstestsuite/tests/plugins/plugins11.stdout
- testsuite/tests/plugins/plugins12.hs 9 additions, 0 deletionstestsuite/tests/plugins/plugins12.hs
- testsuite/tests/plugins/plugins13.hs 5 additions, 0 deletionstestsuite/tests/plugins/plugins13.hs
Loading
Please register or sign in to comment