[GHC] #8809: Prettier error messages?

GHC ghc-devs at haskell.org
Tue Nov 29 19:40:04 UTC 2016


#8809: Prettier error messages?
-------------------------------------+-------------------------------------
        Reporter:  joelteon          |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.9
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
  #8809,#10073,#10179                |
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Ben Gamari <ben@…>):

 In [changeset:"f1fc8cbf511c88cb88bf9f46724ee2711f54891a/ghc"
 f1fc8cbf/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="f1fc8cbf511c88cb88bf9f46724ee2711f54891a"
 Make diagnostics slightly more colorful

 This is a preliminary commit to add colors to diagnostics (warning and
 error messages).  The aesthetic changes are:

   - 'warning', 'error', and 'fatal' are all colored magenta, red, and
     red respectively.
   - The warning annotation [-Wsomething] shares the same color.
   - Warnings and errors are also bolded (this is consistent with what
     other compilers do).

 A new flag has been added to control the behavior:

     -fdiagnostics-color=(always|auto|never)

 This flag is 'auto' by default.  However, auto-detection is not
 implemented yet, so it effectively it defaults to off.

 Test Plan: validate

 Reviewers: austin, bgamari

 Reviewed By: bgamari

 Subscribers: thomie

 Differential Revision: https://phabricator.haskell.org/D2716

 GHC Trac Issues: #8809
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8809#comment:36>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list