stylish-haskell
stylish-haskell copied to clipboard
Give useful error message when using `exit_code: error_on_format`
This would allow for nicer CI integration. As it stands it's easy to get the CI to fail when the code isn't styled correctly, but it's rather hard to actually know what the reason is.
Can you give an example?
Currently running stylish-haskell -r src
with exit_code: error_on_format
spits out all the corrected source code, which is not ideal for a human looking through the CI failure log.
The absolute ideal would be something like what hlint
outputs, with a human readable description of what is incorrectly formatted. However if the code architecture makes that impractical, then a git-style diff of the file changes would be easy to work with as well.