diff options
author | Phil Ruffwind <rf@rufflewind.com> | 2016-12-22 17:06:51 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2016-12-23 16:44:47 -0500 |
commit | 158530a5450b27eb5ae2d75b7895fd1662dde13b (patch) | |
tree | 7a0be5291bb05086e6f656f20cdbee23b139a8a8 /testsuite/mk | |
parent | 8f89e76389569b73ce0d7550302641bbea438dfc (diff) | |
download | haskell-158530a5450b27eb5ae2d75b7895fd1662dde13b.tar.gz |
Add caret diagnostics
This is controlled by -f[no-]diagnostics-show-caret.
Example of what it looks like:
```
|
42 | x = 1 + ()
| ^^^^^^
```
This is appended to each diagnostic message.
Test Plan:
testsuite/tests/warnings/should_fail/CaretDiagnostics1
testsuite/tests/warnings/should_fail/CaretDiagnostics2
Reviewers: simonpj, austin, bgamari
Reviewed By: simonpj, bgamari
Subscribers: joehillen, mpickering, Phyx, simonpj, alanz, thomie
Differential Revision: https://phabricator.haskell.org/D2718
GHC Trac Issues: #8809
Diffstat (limited to 'testsuite/mk')
-rw-r--r-- | testsuite/mk/test.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/mk/test.mk b/testsuite/mk/test.mk index 16be955992..a44e200d49 100644 --- a/testsuite/mk/test.mk +++ b/testsuite/mk/test.mk @@ -47,6 +47,7 @@ ifeq "$(MinGhcVersion801)" "YES" # Turn off any VT800 codes in the output or they wreak havoc on the # testsuite output. TEST_HC_OPTS += -fdiagnostics-color=never +TEST_HC_OPTS += -fno-diagnostics-show-caret endif # Add the no-debug-output last as it is often convenient to copy the test invocation |