[GHC] #12927: Colorized error messages result in hard-to-read .dump-* files
GHC
ghc-devs at haskell.org
Mon Dec 5 20:20:30 UTC 2016
#12927: Colorized error messages result in hard-to-read .dump-* files
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: #8809 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Rufflewind):
Another workaround would be to pass `-fdiagnostics-color=never` to ghc.
I think the right fix would be to not output ANSI color codes except when
the destination is stderr. It's a bit tricky though because I'm not sure
how to detect this from within `mkLocMessageAnn`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12927#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list