ghc-9.6.1-alpha2 outputs color codes in terminals that don't support them
This is most likely because of d3f0ddaf.
This change makes GHC output color codes e.g. in *compilation*
buffer in emacs.
Steps to reproduce:
- Run
echo blah > X.hs
. - Run
emacs -Q X.hs
. - Press Alt-X.
- Run
compile
. - Run
ghc --make X.hs
.
Expected:
Given:
EDIT: Confirmed, reverting d3f0ddaf fixes the issue. It was part of !9639 (closed), I'm not sure if the corresponding change for ghc-pkg also breaks something.