[GHC] #13190: Add a flag to dump compiler output as JSON
GHC
ghc-devs at haskell.org
Mon Jan 30 19:02:49 UTC 2017
#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 Ben Gamari <ben@…>):
In [changeset:"91691117fc194c525f58ccd5b266dd1d10493e5a/ghc"
91691117/ghc]:
{{{
#!CommitTicketReference repository="ghc"
revision="91691117fc194c525f58ccd5b266dd1d10493e5a"
Add a flag to emit error messages as JSON
This patch adds the flag `-ddump-json` which dumps all the compiler
output as a JSON array. This allows tooling to more easily parse GHC's
output to display to users.
The flag is currently experimental and will hopefully be refined for the
next release. In particular I have avoided any changes which involve
significant refactoring and provided what is easy given the current
infrastructure.
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: DanielG, gracjan, thomie
Differential Revision: https://phabricator.haskell.org/D3010
GHC Trac Issues: #13190
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13190#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list