[commit: ghc] master: Run typeCheckResultAction and renamedResultAction in TcM rather than Hsc (dc8c03b)

git at git.haskell.org git at git.haskell.org
Fri Jun 8 00:09:58 UTC 2018


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

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

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

commit dc8c03b2a5c70d3169e88d407f3ef28e0cb26af5
Author: Matthew Pickering <matthew.pickering at tweag.io>
Date:   Thu Jun 7 13:31:52 2018 -0400

    Run typeCheckResultAction and renamedResultAction in TcM rather than Hsc
    
    The primary motivation for this is that this allows users to access
    the warnings and error machinery present in TcM. However, it also allows
    users to use TcM actions which means they can typecheck GhcPs which
    could be significantly easier than constructing GhcTc.
    
    Reviewers: bgamari
    
    Reviewed By: bgamari
    
    Subscribers: rwbarton, thomie, carter
    
    GHC Trac Issues: #15229
    
    Differential Revision: https://phabricator.haskell.org/D4792


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

dc8c03b2a5c70d3169e88d407f3ef28e0cb26af5
 compiler/main/HscMain.hs                           | 39 +++------------
 compiler/main/Plugins.hs                           |  8 +--
 compiler/typecheck/TcRnDriver.hs                   | 57 +++++++++++++++++++---
 docs/users_guide/extending_ghc.rst                 |  8 +--
 .../plugins/simple-plugin/Simple/RemovePlugin.hs   |  2 +-
 .../plugins/simple-plugin/Simple/SourcePlugin.hs   |  4 +-
 6 files changed, 66 insertions(+), 52 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 dc8c03b2a5c70d3169e88d407f3ef28e0cb26af5


More information about the ghc-commits mailing list