[Haskell-cafe] shorter error messages

Jaro Reinders jaro.reinders at gmail.com
Tue Mar 16 16:56:59 UTC 2021


On 16-03-2021 17:40, Tom Smeding wrote:
> In any case, the haskell language server just uses GHC internally, so it just shortens the GHC message. But then I believe the same result could be accomplished by some simple text manipulation on GHC's normal output.

In fact, you can use -ddump-json to get JSON error messages. I should be easy 
to convert that to any form you like.

But there is no clear specification of that output:
https://gitlab.haskell.org/ghc/ghc/-/issues/19278

And I also want to point out that there is a big open issue for better error 
messages:
https://gitlab.haskell.org/ghc/ghc/-/issues/8809


More information about the Haskell-Cafe mailing list