[GHC] #11140: add command-line option to GHC to dump raw parse trees of Haskell programs

GHC ghc-devs at haskell.org
Fri Nov 27 16:13:39 UTC 2015


#11140: add command-line option to GHC to dump raw parse trees of Haskell programs
-------------------------------------+-------------------------------------
           Reporter:  bollu          |             Owner:
               Type:  bug            |            Status:  new
           Priority:  low            |         Milestone:
          Component:  Compiler       |           Version:  7.10.2
           Keywords:  newcomer       |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 As of now, GHC has no option to dump the parse tree of a given Haskell
 source file.

 `-ddump-parsed` only displays the pretty-printed AST structure, and cannot
 be used to inspect parse trees.

 An existing implementation of such a feature is present in apply-
 refact(https://github.com/mpickering/apply-refact) by invoking the tool as
 `refactor --debug`.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11140>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list