[GHC] #10869: Option to dump preprocessed source

GHC ghc-devs at haskell.org
Tue May 22 15:05:52 UTC 2018


#10869: Option to dump preprocessed source
-------------------------------------+-------------------------------------
        Reporter:  phischu           |                Owner:  RolandSenn
            Type:  feature request   |               Status:  new
        Priority:  low               |            Milestone:
       Component:  Driver            |              Version:  7.10.2
      Resolution:                    |             Keywords:  easy
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by RolandSenn):

 * owner:  (none) => RolandSenn


Comment:

 I'll try to implement this:

 * A new compiler flag `--ddump-preprocessed` will be defined and
 documented.
 * With the new flag set, GHC will generate the <module>.hspp file with the
 same content as the one created with the GHC option `-E`.
 * Opposite to the `-E` processing, GHC will not stop, but continue its
 processing normally.
 * If you specify both `-E` and `--ddump-preprocessed`, there will be the
 same processing as with only the GHC option `-E`: GHC will stop after
 producing the <module>.hspp file. No error/warning message will be issued.
 * A test case will be added.

 As usual, if you disagree, please do holler...

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


More information about the ghc-tickets mailing list