[GHC] #8624: -ddump-splices-file

GHC ghc-devs at haskell.org
Tue Dec 9 13:41:00 UTC 2014


#8624: -ddump-splices-file
-------------------------------------+-------------------------------------
              Reporter:  GregWeber   |            Owner:
                  Type:  feature     |           Status:  patch
  request                            |        Milestone:
              Priority:  normal      |          Version:  7.6.3
             Component:  Compiler    |         Keywords:
            Resolution:              |     Architecture:  Unknown/Multiple
      Operating System:              |       Difficulty:  Unknown
  Unknown/Multiple                   |       Blocked By:
       Type of failure:              |  Related Tickets:
  None/Unknown                       |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
  https://phabricator.haskell.org/D518|
-------------------------------------+-------------------------------------

Comment (by GregWeber):

 A big problem here is that `-ddump-to-file` is a global flag. I assume
 dumping to stdout is the default because users want that ephemeral
 behavior. The design for this ticket is that a user always wants to save
 it to a file, and that should not have to make all other dumps go to a
 file. If someone wants to ephemerally dump splices to stdout `-ddump-
 splices` is already there, well known, and better suited to the job.
 Additionally, I want a `.hs` file to signify that the output is valid
 Haskell, not just a dump in an ad-hoc format, whereas with dumping the
 convention is `dump-FLAG`.

 So I did intentionally want to get away from dumping but I am definitely
 open to ideas for better naming.

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


More information about the ghc-tickets mailing list