
16 Mar
2021
16 Mar
'21
12:56 p.m.
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