[GHC] #15953: GHC always dumps the output of -ddump-hpc to STDOUT

GHC ghc-devs at haskell.org
Fri Nov 30 00:45:25 UTC 2018


#15953: GHC always dumps the output of -ddump-hpc to STDOUT
-------------------------------------+-------------------------------------
        Reporter:  ckoparkar         |                Owner:  (none)
            Type:  bug               |               Status:  patch
        Priority:  normal            |            Milestone:  8.10.1
       Component:  Compiler          |              Version:  8.6.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D5382
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ryan Scott <ryan.gl.scott@…>):

 In [changeset:"dcf1f9268f6b338997f2c03891d7bc57da2ee78a/ghc" dcf1f92/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="dcf1f9268f6b338997f2c03891d7bc57da2ee78a"
 Fix #15953 by consistently using dumpIfSet_dyn to print debug output

 Summary:
 In some modules we directly dump the debugging output to STDOUT
 via 'putLogMsg', 'printInfoForUser' etc. However, if `-ddump-to-file`
 is enabled, that output should be written to a file. Easily fixed.

 Certain tests (T3017, Roles3, T12763 etc.) expect part of the
 output generated by `-ddump-types` to be in 'PprUser' style. However,
 generally we want all other debugging output to use 'PprDump'
 style. `traceTcRn` and `traceTcRnForUser` help us accomplish this.

 This patch also documents some missing flags in the users guide.

 Reviewers: RyanGlScott, bgamari, hvr

 Reviewed By: RyanGlScott

 Subscribers: rwbarton, carter

 GHC Trac Issues: #15953

 Differential Revision: https://phabricator.haskell.org/D5382
 }}}

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


More information about the ghc-tickets mailing list