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
Showing
- compiler/main/DriverPipeline.hs 1 addition, 2 deletionscompiler/main/DriverPipeline.hs
- compiler/main/DynFlags.hs 21 additions, 66 deletionscompiler/main/DynFlags.hs
- compiler/main/GHC.hs 3 additions, 5 deletionscompiler/main/GHC.hs
- testsuite/tests/driver/json.stderr 1 addition, 8 deletionstestsuite/tests/driver/json.stderr
- testsuite/tests/driver/json2.stderr 1 addition, 9 deletionstestsuite/tests/driver/json2.stderr
Loading
Please register or sign in to comment