• Matthew Pickering's avatar
    Add a flag to emit error messages as JSON · 91691117
    Matthew Pickering authored
    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
    Reviewers: austin, bgamari
    Reviewed By: bgamari
    Subscribers: DanielG, gracjan, thomie
    Differential Revision: https://phabricator.haskell.org/D3010
    GHC Trac Issues: #13190
debugging.rst 11.2 KB