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.
Repository navigation
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
The ignore-exports option is broken and should be removed #861
I'm relying on this option for exactly this reason:
Causes Haddock to behave as if every module has the
``ignore-exports`` attribute (:ref:`module-attrs`). This might be useful for
generating implementation documentation rather than interface
documentation, for example.
Are there any alternatives to this option at the moment (or any future plans)?
@zilinc I'm not aware of a real alternative or any plans for one.
A widely used way to get implementation docs is to have internal modules with no explicit export list, and non-internal modules that partially re-export these internal modules. E.g. containers is structured like this.
It seems like the desired behavior would be something like document-unexported, where if there are unexported top level definitions they get added to the end of the export list after a "Not Exported" header for the purposes of haddock.
However I don't know enough about the internals of haddock/ghc to know how difficult this is to implement.
Activity
alexbiehl commentedon Jun 30, 2018
I think we should remove
ignore-exportsin the next haddock version.sjakobi commentedon Jun 30, 2018
Background: With Hi Haddock, we serialize the documentation structure in the
.hi-files. And we don't want to make GHC act on haddock options for this.sjakobi commentedon Jun 30, 2018
Example of brokenness: #866.
Remove the ignore-exports option
Remove the ignore-exports option
Remove the ignore-exports option
zilinc commentedon Sep 11, 2018
I'm relying on this option for exactly this reason:
Are there any alternatives to this option at the moment (or any future plans)?
sjakobi commentedon Sep 27, 2018
@zilinc I'm not aware of a real alternative or any plans for one.
A widely used way to get implementation docs is to have internal modules with no explicit export list, and non-internal modules that partially re-export these internal modules. E.g.
containersis structured like this.Remove the ignore-exports option
tysonzero commentedon Mar 31, 2022
It seems like the desired behavior would be something like
document-unexported, where if there are unexported top level definitions they get added to the end of the export list after a "Not Exported" header for the purposes of haddock.However I don't know enough about the internals of haddock/ghc to know how difficult this is to implement.