#12927: Colorized error messages result in hard-to-read .dump-* files -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: Type: bug | Status: patch 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): Phab:D2792 Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"cee72d5c3c53863bd4fc9f324a93c322448e038e/ghc" cee72d5/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="cee72d5c3c53863bd4fc9f324a93c322448e038e" 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 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12927#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler