[commit: ghc] ghc-8.2: Allow colors to be customized (7141a18)

git at git.haskell.org git at git.haskell.org
Mon Mar 27 03:00:08 UTC 2017


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

On branch  : ghc-8.2
Link       : http://ghc.haskell.org/trac/ghc/changeset/7141a183a968b3418c113b234de9f75a0a735766/ghc

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

commit 7141a183a968b3418c113b234de9f75a0a735766
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
    
    (cherry picked from commit adf27d614f8a48d8dcf2d4e2e7872f7b3f818364)


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

7141a183a968b3418c113b234de9f75a0a735766
 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 7141a183a968b3418c113b234de9f75a0a735766


More information about the ghc-commits mailing list