-
Notifications
You must be signed in to change notification settings - Fork 240
haddock 2.26.0 ignores both --ignore-all-exports
and {-# OPTIONS_HADDOCK ignore-exports #-}
#1531
Comments
I have just tried with haddock 2.27.0, installed with ghc 9.4.2, and the bug is still there, FWIW. I have cloned the repo, I'll test to see if it is also broken on |
Hi @nicuveo, and thank you very much for this report. |
NP! I have just checked, that bug is also present on |
I have found the issue, I think: haddock/haddock-api/src/Haddock/Interface/Create.hs Lines 1041 to 1046 in d6b30b1
And indeed, if i My working hypothesis is therefore that, between 9.0 and 9.2, GHC dropped non-exported "avails" from that list. If that's correct, then there are several possible avenues to explore to fix this bug:
|
Ahah! In branch |
Ah, interesting: |
Hi y'all; here's a regression in 2.26.0. In short: both the
ignore-exports
pragma and the--ignore-all-exports
option are ignored.Small repro case
Given a file
Foo.hs
containing the following:invoking
haddock
yields the following:and the generated HTML file does not contain
bar
.Expected behaviour
Running the same command on the same file with haddock version
2.25.1
yields the following:and the generated file correctly contains
bar
.The text was updated successfully, but these errors were encountered: