Skip to content

Print errors/warnings count as a result of compilation

Motivation

I want to get a sense of the number of errors / warnings that I currently have in my project. Is there any way at the moment? This SO thread suggests to jq the -ddump-json output, and the specific recipe is already broken because -ddump-json have changed the format... I tried to fix it, and it kinda worked but was painful. I'm used to seeing this info printed at the end of compilation with other (non-Haskell) compilers (as the SO thread also mentions).

Proposal

Print errors/warnings count as a result of compilation

Interactions

Perhaps, Cabal has to do something smart to sum up the counters over components, but I think that having the info available for one component at a time would be a huge step forward already.

Edited by Artem Pelenitsyn
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information