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
Showing
- compiler/main/HscMain.hs 6 additions, 33 deletionscompiler/main/HscMain.hs
- compiler/main/Plugins.hs 4 additions, 4 deletionscompiler/main/Plugins.hs
- compiler/typecheck/TcRnDriver.hs 49 additions, 8 deletionscompiler/typecheck/TcRnDriver.hs
- docs/users_guide/extending_ghc.rst 38 additions, 38 deletionsdocs/users_guide/extending_ghc.rst
- testsuite/tests/plugins/simple-plugin/Simple/RemovePlugin.hs 1 addition, 1 deletiontestsuite/tests/plugins/simple-plugin/Simple/RemovePlugin.hs
- testsuite/tests/plugins/simple-plugin/Simple/SourcePlugin.hs 2 additions, 2 deletionstestsuite/tests/plugins/simple-plugin/Simple/SourcePlugin.hs
Loading
Please register or sign in to comment