You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
$ haddock-9.2.4 -V
Haddock version 2.26.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
$ haddock-9.2.4 --ignore-all-exports --html Foo.hs
0% ( 0 / 2) in 'Foo'
Missing documentation for:
Module header
foo (Foo.hs:5)
$ grep -q bar Foo.html && echo found || echo not found
not found
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:
$ haddock-9.0 -V
Haddock version 2.25.1, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
$ haddock-9.0 --ignore-all-exports --html Foo.hs
0% ( 0 / 2) in 'Foo'
Missing documentation for:
Module header
foo (Foo.hs:5)
bar (Foo.hs:8)
$ grep -q bar Foo.html && echo found || echo not found
found
Hi y'all; here's a regression in 2.26.0. In short: both the
ignore-exportspragma and the--ignore-all-exportsoption are ignored.Small repro case
Given a file
Foo.hscontaining the following:{-# OPTIONS_HADDOCK ignore-exports #-} module Foo (foo) where foo :: Int foo = 42 bar :: Int bar = 42invoking
haddockyields 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.1yields the following:and the generated file correctly contains
bar.