[commit: ghc] master: Disable colors unless printing to stderr (cee72d5)

git at git.haskell.org git at git.haskell.org
Fri Dec 9 16:17:59 UTC 2016


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

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

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

commit cee72d5c3c53863bd4fc9f324a93c322448e038e
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Fri Dec 9 10:28:25 2016 -0500

    Disable colors unless printing to stderr
    
    Only print colors when mkLocMessageAnn is called directly from
    defaultLogAction.  This prevents ANSI error codes from cluttering up the
    dump files.
    
    Test Plan: validate
    
    Reviewers: austin, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2792
    
    GHC Trac Issues: #12927


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

cee72d5c3c53863bd4fc9f324a93c322448e038e
 compiler/main/DynFlags.hs    |  2 +-
 compiler/main/ErrUtils.hs    | 33 ++++++++++++----------
 compiler/utils/Outputable.hs | 66 +++++++++++++++++++++++++++-----------------
 3 files changed, 60 insertions(+), 41 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 cee72d5c3c53863bd4fc9f324a93c322448e038e


More information about the ghc-commits mailing list