From 91691117fc194c525f58ccd5b266dd1d10493e5a Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Mon, 30 Jan 2017 11:53:17 -0500 Subject: 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 --- docs/users_guide/8.2.1-notes.rst | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/users_guide/8.2.1-notes.rst') diff --git a/docs/users_guide/8.2.1-notes.rst b/docs/users_guide/8.2.1-notes.rst index e654f20399..ae156cb110 100644 --- a/docs/users_guide/8.2.1-notes.rst +++ b/docs/users_guide/8.2.1-notes.rst @@ -125,6 +125,10 @@ Compiler :ghc-flag:`-Wmissing-methods` will now warn that ``_Bar`` is not implemented in the ``Foo Int`` instance. +- A new flag :ghc-flag:`-ddump-json` has been added. This flag dumps compiler + output as JSON documents. It is experimental and will be refined depending + on feedback from tooling authors for the next release. + GHCi ~~~~ -- cgit v1.2.1