[commit: ghc] master: Run the renamed source plugin after each HsGroup (1a79270)
git at git.haskell.org
git at git.haskell.org
Thu Jul 12 19:06:29 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/1a79270c72cfcd98d683cfe7b2c777d8dd353b78/ghc
>---------------------------------------------------------------
commit 1a79270c72cfcd98d683cfe7b2c777d8dd353b78
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
>---------------------------------------------------------------
1a79270c72cfcd98d683cfe7b2c777d8dd353b78
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 1a79270c72cfcd98d683cfe7b2c777d8dd353b78
More information about the ghc-commits
mailing list