[commit: ghc] master: Allow colors to be customized (adf27d6)

git at git.haskell.org git at git.haskell.org
Fri Mar 24 05:32:53 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/adf27d614f8a48d8dcf2d4e2e7872f7b3f818364/ghc

>---------------------------------------------------------------

commit adf27d614f8a48d8dcf2d4e2e7872f7b3f818364
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Thu Mar 23 20:59:01 2017 -0400

    Allow colors to be customized
    
    Allow customization of diagnostic colors through the GHC_COLORS
    environment variable.  Some color-related code have been refactored to
    PprColour to reduce the circular dependence between DynFlags,
    Outputable, ErrUtils.  Some color functions that were part of Outputable
    but were never used have been deleted.
    
    Test Plan: validate
    
    Reviewers: austin, hvr, bgamari, dfeuer
    
    Reviewed By: bgamari, dfeuer
    
    Subscribers: dfeuer, rwbarton, thomie, snowleopard
    
    Differential Revision: https://phabricator.haskell.org/D3364


>---------------------------------------------------------------

adf27d614f8a48d8dcf2d4e2e7872f7b3f818364
 compiler/ghc.cabal.in          |  1 +
 compiler/ghc.mk                |  1 +
 compiler/main/DynFlags.hs      | 28 ++++++++------
 compiler/main/DynFlags.hs-boot |  5 +--
 compiler/main/ErrUtils.hs      | 39 ++++++++++---------
 compiler/utils/Outputable.hs   | 87 +++++++----------------------------------
 compiler/utils/PprColour.hs    | 88 ++++++++++++++++++++++++++++++++++++++++++
 compiler/utils/Util.hs         | 15 +++++++
 docs/users_guide/using.rst     | 21 ++++++++--
 ghc/GHCi/UI.hs                 |  2 +-
 10 files changed, 176 insertions(+), 111 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 adf27d614f8a48d8dcf2d4e2e7872f7b3f818364


More information about the ghc-commits mailing list