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 adf27d61)
Showing
- compiler/ghc.cabal.in 1 addition, 0 deletionscompiler/ghc.cabal.in
- compiler/ghc.mk 1 addition, 0 deletionscompiler/ghc.mk
- compiler/main/DynFlags.hs 16 additions, 12 deletionscompiler/main/DynFlags.hs
- compiler/main/DynFlags.hs-boot 1 addition, 4 deletionscompiler/main/DynFlags.hs-boot
- compiler/main/ErrUtils.hs 21 additions, 18 deletionscompiler/main/ErrUtils.hs
- compiler/utils/Outputable.hs 15 additions, 72 deletionscompiler/utils/Outputable.hs
- compiler/utils/PprColour.hs 88 additions, 0 deletionscompiler/utils/PprColour.hs
- compiler/utils/Util.hs 15 additions, 0 deletionscompiler/utils/Util.hs
- docs/users_guide/using.rst 18 additions, 5 deletionsdocs/users_guide/using.rst
- ghc/GHCi/UI.hs 1 addition, 1 deletionghc/GHCi/UI.hs
Loading
Please register or sign in to comment