[commit: ghc] master: Extended the plugin system to run plugins on more representations (c2783cc)

git at git.haskell.org git at git.haskell.org
Sun Jun 3 03:21:20 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/c2783ccf545faabd21a234a4dfc569cd856082b9/ghc

>---------------------------------------------------------------

commit c2783ccf545faabd21a234a4dfc569cd856082b9
Author: Boldizsar Nemeth <nboldi at elte.hu>
Date:   Sat Jun 2 19:08:40 2018 -0400

    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


>---------------------------------------------------------------

c2783ccf545faabd21a234a4dfc569cd856082b9
 compiler/iface/LoadIface.hs                        |   5 +-
 compiler/main/HscMain.hs                           | 104 +++++++----
 compiler/main/Plugins.hs                           |  69 ++++++-
 compiler/simplCore/CoreMonad.hs-boot               |  37 ++++
 compiler/typecheck/TcSplice.hs                     |   8 +-
 docs/users_guide/extending_ghc.rst                 | 203 +++++++++++++++++++++
 testsuite/tests/plugins/Makefile                   |  28 +++
 testsuite/tests/plugins/MetaRemoveHelper.hs        |   6 +
 testsuite/tests/plugins/PluginFilteredExport.hs    |   8 +
 testsuite/tests/plugins/QuasiQuotation.hs          |  11 ++
 testsuite/tests/plugins/all.T                      |  36 ++++
 testsuite/tests/plugins/plugins04.stderr           |   0
 .../T12062/A.hs-boot => plugins/plugins09.hs}      |   0
 testsuite/tests/plugins/plugins09.stdout           |   8 +
 testsuite/tests/plugins/plugins10.hs               |   9 +
 testsuite/tests/plugins/plugins10.stdout           |  18 ++
 testsuite/tests/plugins/plugins11.hs               |   2 +
 testsuite/tests/plugins/plugins11.stdout           |   8 +
 testsuite/tests/plugins/plugins12.hs               |   9 +
 testsuite/tests/plugins/plugins13.hs               |   5 +
 testsuite/tests/plugins/plugins14.hs               |  11 ++
 testsuite/tests/plugins/plugins15.hs               |  12 ++
 .../plugins/simple-plugin/Simple/RemovePlugin.hs   |  69 +++++++
 .../plugins/simple-plugin/Simple/SourcePlugin.hs   |  52 ++++++
 .../plugins/simple-plugin/simple-plugin.cabal      |   2 +
 25 files changed, 673 insertions(+), 47 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc c2783ccf545faabd21a234a4dfc569cd856082b9


More information about the ghc-commits mailing list