[commit: ghc] master: Make diagnostics slightly more colorful (f1fc8cb)
git at git.haskell.org
git at git.haskell.org
Tue Nov 29 19:40:09 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/f1fc8cbf511c88cb88bf9f46724ee2711f54891a/ghc
>---------------------------------------------------------------
commit f1fc8cbf511c88cb88bf9f46724ee2711f54891a
Author: Phil Ruffwind <rf at rufflewind.com>
Date: Tue Nov 29 13:31:01 2016 -0500
Make diagnostics slightly more colorful
This is a preliminary commit to add colors to diagnostics (warning and
error messages). The aesthetic changes are:
- 'warning', 'error', and 'fatal' are all colored magenta, red, and
red respectively.
- The warning annotation [-Wsomething] shares the same color.
- Warnings and errors are also bolded (this is consistent with what
other compilers do).
A new flag has been added to control the behavior:
-fdiagnostics-color=(always|auto|never)
This flag is 'auto' by default. However, auto-detection is not
implemented yet, so it effectively it defaults to off.
Test Plan: validate
Reviewers: austin, bgamari
Reviewed By: bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D2716
GHC Trac Issues: #8809
>---------------------------------------------------------------
f1fc8cbf511c88cb88bf9f46724ee2711f54891a
compiler/main/DynFlags.hs | 27 +++++++++++-
compiler/main/DynFlags.hs-boot | 6 ++-
compiler/main/ErrUtils.hs | 22 ++++++----
compiler/utils/Outputable.hs | 66 +++++++++++++++++++++++-------
docs/users_guide/using.rst | 9 ++++
utils/mkUserGuidePart/Options/Verbosity.hs | 4 ++
6 files changed, 111 insertions(+), 23 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 f1fc8cbf511c88cb88bf9f46724ee2711f54891a
More information about the ghc-commits
mailing list