cabal-install haddock-project
includes sub-libraries with visibility: hidden
#10157
Labels
haddock-project
includes sub-libraries with visibility: hidden
#10157
Describe the bug
The
cabal haddock-project
produces, as part of it's indexed output, sub-libraries which ought to be omitted due to being annotated asvisibility: hidden
in the package description$pkg.cabal
file.To Reproduce
Steps to reproduce the behavior:
$ git clone https://github.com/recursion-ninja/includes-hidden-sublibraries $ cd includes-hidden-sublibraries $ cabal haddock-project $ grep Lib2 haddocks/index.html
Expected behavior
The contents of
haddocks/index.html
should not includeLib2
becauseincludes-hidden-sublibraries.cabal
specifies thatlib2
is not a public facing library via thevisibility: private
build field.The
grep
command in the example above should produce no output becauseLib2
was not included in the generated Haddock documentation.System information
MacOS
Cabal
The text was updated successfully, but these errors were encountered: