haddock icon indicating copy to clipboard operation
haddock copied to clipboard

A way to fail on missing docs

Open NorfairKing opened this issue 3 years ago • 2 comments

I'd like to ensure that my library is fully documented by failing the build if haddock fails. So I think I'd like something like -Werror for haddock, because I see that haddock can already warn against missing docs.

NorfairKing avatar May 24 '21 11:05 NorfairKing

I just thought of a slighty hacky way to achieve this: Since there's the --no-warnings flag, it's possible to do one run without the flag and one with, if the output changes based on the flag, there's warnings.

infinisil avatar Mar 07 '22 20:03 infinisil

cc @tchoutri

NorfairKing avatar Apr 26 '23 08:04 NorfairKing