summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2017-01-11 11:57:35 +0200
committerAlan Zimmerman <alan.zimm@gmail.com>2017-01-15 21:38:05 +0200
commit1ff3c5882427d704538250e6fdadd6f48bb08989 (patch)
tree56bf792993cf59c3120219dc420c06879e397883 /docs
parent9d67f04d4892ea399631fd67ce91782b821a127e (diff)
downloadhaskell-1ff3c5882427d704538250e6fdadd6f48bb08989.tar.gz
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
Diffstat (limited to 'docs')
-rw-r--r--docs/users_guide/debugging.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/users_guide/debugging.rst b/docs/users_guide/debugging.rst
index ba44e60074..b4c20eb8b9 100644
--- a/docs/users_guide/debugging.rst
+++ b/docs/users_guide/debugging.rst
@@ -38,6 +38,10 @@ Dumping out compiler intermediate structures
Dump parser output
+ .. ghc-flag:: -ddump-parsed-ast
+
+ Dump parser output as a syntax tree
+
.. ghc-flag:: -ddump-rn
Dump renamer output