From 1ff3c5882427d704538250e6fdadd6f48bb08989 Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Wed, 11 Jan 2017 11:57:35 +0200 Subject: 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 --- docs/users_guide/debugging.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') 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 -- cgit v1.2.1