
#14106: Out of scope errors appear after type errors caused by them -------------------------------------+------------------------------------- Reporter: EyalLotem | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Poor/confusing | Unknown/Multiple error message | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): I do rather agree. Currently, GHC * Suppresses warnings if there are any errors * Sorts errors/warnings by line number Better, I think, would be * Sort all messages by severity, most severe first * Then, within severity, by line number * Ensure that out-of-scope errors are somehow more severe There are hooks for all this: all messages have a line number and a severity. But it's not terribly well structured or described, so it might take a bit of careful work to implement this ideas. Nothing actually difficult, though. Volunteers? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14106#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler