[GHC] #8809: Prettier error messages?

GHC ghc-devs at haskell.org
Sun Jan 15 16:52:29 UTC 2017


#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:  13122
 Related Tickets:                    |  Differential Rev(s):
  #8809,#10073,#10179,#12906         |
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Replying to [comment:53 goldfire]:
 > I'm a little lost now. It looks like `pretty` already has the
 annotations proposed in comment:3.
 So is #10735 really all that's left to allow annotations within `SDoc`s?

 That is pretty much right.

 > And I remember somewhere that color would be impossible without a design
 like comment:3... and yet we have color now.
 >
 Well this isn't quite true. Yes, we have color, but I think part of the
 initial suggestion was to make much greater use of color throughout the
 message. For instance, we might render the type `Int` in one color and
 `String` in another, or perhaps render all types in one color and all
 expressions in another. For this we need more rich semantic content within
 the message so we don't need to bury the details of error message styling
 deep inside the compiler.

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


More information about the ghc-tickets mailing list