[GHC] #15953: GHC always dumps the output of -ddump-hpc to STDOUT
#15953: GHC always dumps the output of -ddump-hpc to STDOUT -------------------------------------+------------------------------------- Reporter: ckoparkar | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Instead, it should write the output to a file if `-ddump-to-file` is enabled. `-ddump-core-stats` also has a similar problem. But given that it always prints just one line, maybe it should continue to print to `STDOUT`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15953> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#15953: GHC always dumps the output of -ddump-hpc to STDOUT -------------------------------------+------------------------------------- Reporter: ckoparkar | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: 8.8.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: | -------------------------------------+------------------------------------- Changes (by ckoparkar): * status: new => patch * differential: => Phab:D5382 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15953#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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: | -------------------------------------+------------------------------------- Changes (by bgamari): * milestone: 8.8.1 => 8.10.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15953#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#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
#15953: GHC always dumps the output of -ddump-hpc to STDOUT -------------------------------------+------------------------------------- Reporter: ckoparkar | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: | utils/should_run/T15953 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D5382 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RyanGlScott): * status: patch => closed * testcase: => utils/should_run/T15953 * resolution: => fixed * milestone: 8.10.1 => 8.8.1 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15953#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC