
#9672: Error message too long (full case statement printed) -------------------------------------+------------------------------------- Reporter: | Owner: andreas.abel | Status: new Type: bug | Milestone: Priority: normal | Version: 7.8.3 Component: Compiler | Keywords: (Type checker) | Architecture: Unknown/Multiple Resolution: | Difficulty: Easy (less than 1 Operating System: | hour) Unknown/Multiple | Blocked By: Type of failure: Other | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by andreas.abel): A simple-minded fix is to just surpress the printing of the error context if it is too long. Let's say, if it is more than 7 lines (or put some other magic number here), it does not print it, as it will probably not be helpful to the user. I hardly ever read the surrounding context of an error, I just look at the error position and jump to that line in my editor. The problem with long error contexts is that errors scroll way up in my terminal and I have to go a long way back to read the error position. Also, it is not easy to get an overview over all the errors one got. If there was a flag --short-error-messages, I had it on always, for that very reason. Andreas -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9672#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler