[GHC] #14097: -ddump-json doesn't interact as expected with -ddump-to-file
GHC
ghc-devs at haskell.org
Mon Aug 7 16:22:49 UTC 2017
#14097: -ddump-json doesn't interact as expected with -ddump-to-file
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
Resolution: | Keywords: JSON
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mpickering):
Well, the real problem here is that the way things are currently
engineered, `-ddump-json` collects error messages for the entire
compilation and then dumps them in one go. `dumpSDoc` is set up to dump
things on a per-module basis, as such the log files are given the name of
the current module they are dumping. Perhaps a better design for `-ddump-
json` would be to output a JSON log on a module-by-module basis rather
than collecting all the output.
This would complicate the implementation a little as the messages would
need to be sorted by module.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14097#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list