[commit: ghc] master: Add dump-parsed-ast flag and functionality (1ff3c58)
git at git.haskell.org
git at git.haskell.org
Sun Jan 15 19:38:20 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/1ff3c5882427d704538250e6fdadd6f48bb08989/ghc
>---------------------------------------------------------------
commit 1ff3c5882427d704538250e6fdadd6f48bb08989
Author: Alan Zimmerman <alan.zimm at gmail.com>
Date: Wed Jan 11 11:57:35 2017 +0200
Add dump-parsed-ast flag and functionality
Summary:
This flag causes a dump of the ParsedSource as an AST in textual form, similar
to the ghc-dump-tree on hackage.
Test Plan: ./validate
Reviewers: mpickering, bgamari, austin
Reviewed By: mpickering
Subscribers: nominolo, thomie
Differential Revision: https://phabricator.haskell.org/D2958
GHC Trac Issues: #11140
>---------------------------------------------------------------
1ff3c5882427d704538250e6fdadd6f48bb08989
compiler/ghc.cabal.in | 1 +
compiler/hsSyn/HsDumpAst.hs | 192 ++++++++++++
compiler/main/DynFlags.hs | 3 +
compiler/main/HscMain.hs | 11 +-
docs/users_guide/debugging.rst | 4 +
.../should_compile/{T10188.hs => DumpParsedAst.hs} | 2 +-
.../parser/should_compile/DumpParsedAst.stderr | 329 +++++++++++++++++++++
testsuite/tests/parser/should_compile/all.T | 1 +
utils/check-ppr/Main.hs | 138 +--------
9 files changed, 543 insertions(+), 138 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 1ff3c5882427d704538250e6fdadd6f48bb08989
More information about the ghc-commits
mailing list