Closed alex-tan closed 5 years ago
I want the error messages to be formatted for human reading, and I remember that I was always confused by the condensed output like that when I was learning different languages. The compiler outputs errors in a JSON format with --report=json
which is what editor plugins should be using. It gives information like line numbers and column numbers such that editor plugin authors can make choices like this specific to the editor.
Including the line number/and or column number next to a file path in an error message would allow you to command click it in VSCode and perhaps other editors as well to jump to a particular location in a file:
/app/Main.hs:39:24
. This is how the Haskell compiler does it and it makes debugging much nicer.