[commit: ghc] ghc-8.6: Run the renamed source plugin after each HsGroup (b52cfe4)
git at git.haskell.org
git at git.haskell.org
Thu Jul 12 21:07:15 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.6
Link : http://ghc.haskell.org/trac/ghc/changeset/b52cfe41e8abb2f1dd1e54ed1cf6ff7fcc0de210/ghc
>---------------------------------------------------------------
commit b52cfe41e8abb2f1dd1e54ed1cf6ff7fcc0de210
Author: Matthew Pickering <matthew.pickering at tweag.io>
Date: Thu Jul 12 10:12:23 2018 -0400
Run the renamed source plugin after each HsGroup
This allows modification of each `HsGroup` after it has been renamed.
The old behaviour of keeping the renamed source until later can be
recovered if desired by using the `keepRenamedSource` plugin but it
shouldn't really be necessary as it can be inspected in the `TcGblEnv`.
Reviewers: nboldi, bgamari, alpmestan
Reviewed By: nboldi, alpmestan
Subscribers: alpmestan, rwbarton, thomie, carter
GHC Trac Issues: #15315
Differential Revision: https://phabricator.haskell.org/D4947
(cherry picked from commit 1a79270c72cfcd98d683cfe7b2c777d8dd353b78)
>---------------------------------------------------------------
b52cfe41e8abb2f1dd1e54ed1cf6ff7fcc0de210
compiler/main/HscMain.hs | 7 +---
compiler/main/Plugins.hs | 37 ++++++++++++++--------
compiler/typecheck/TcRnDriver.hs | 36 +++++++++++----------
docs/users_guide/extending_ghc.rst | 19 +++++------
testsuite/tests/plugins/plugins09.stdout | 2 +-
testsuite/tests/plugins/plugins11.stdout | 2 +-
.../plugins/simple-plugin/Simple/SourcePlugin.hs | 14 ++++----
7 files changed, 64 insertions(+), 53 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 b52cfe41e8abb2f1dd1e54ed1cf6ff7fcc0de210
More information about the ghc-commits
mailing list