
#13190: Add a flag to dump compiler output as JSON -------------------------------------+------------------------------------- Reporter: mpickering | Owner: mpickering Type: feature request | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.0.1 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:D3010 Wiki Page: | -------------------------------------+------------------------------------- Comment (by mpickering): Replying to [comment:1 simonpj]:
I don't know much about JSON but the basic idea seems good.
This is just for error messages, right, not for (say `-ddump-simpl`)?
All compiler output will be formatted as structured JSON. The consumer can filter out logging messages from -ddump-simpl output from warnings as they desire. This information is tracked in the `Severity` argument.
Perhaps `-ddump-X` isn't the right connotation. Maybe `-djson-errors`?
That much is up for discussion. It is named this way as it hooks into the same machinery which controls `-ddump-to-file` and related flags. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13190#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler