[commit: ghc] master: Simplify -ddump-json implementation (6ab7cf9)
git at git.haskell.org
git at git.haskell.org
Sun May 13 22:31:00 UTC 2018
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/6ab7cf995dafcc9196e87bbde76b4f6937507592/ghc
>---------------------------------------------------------------
commit 6ab7cf995dafcc9196e87bbde76b4f6937507592
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date: Sun May 13 11:39:34 2018 -0400
Simplify -ddump-json implementation
This patch takes the much simpler route of whenever the compiler tries
to output something. We just dump a JSON document there and then.
I think this should be sufficient to work with and anything more refined
quickly got complicated as it was necessary to demarcate message scopes
and so on.
Reviewers: bgamari, dfeuer
Reviewed By: bgamari
Subscribers: Phyx, dfeuer, rwbarton, thomie, carter
GHC Trac Issues: #14078
Differential Revision: https://phabricator.haskell.org/D4532
>---------------------------------------------------------------
6ab7cf995dafcc9196e87bbde76b4f6937507592
compiler/main/DriverPipeline.hs | 3 +-
compiler/main/DynFlags.hs | 87 +++++++++----------------------------
compiler/main/GHC.hs | 8 ++--
testsuite/tests/driver/json.stderr | 9 +---
testsuite/tests/driver/json2.stderr | 10 +----
5 files changed, 27 insertions(+), 90 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 6ab7cf995dafcc9196e87bbde76b4f6937507592
More information about the ghc-commits
mailing list