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
Currently settings documentation: true enables documentation
generation via haddock for your whole package, including tests and benchmarks.
However, there are additional flags to control generation of
documentation for these "second class" documentation targets, which are
currently not honored at the cabal-install side of things. Namely,
tests, benchmarks, executables, etc. provided under the
haddock section in your $CABAL_HOME/config.
This patch adds a more sensible approach to documentation generation
via haddock. The new behaviour works like this:
Setting documentation: true or passing
--enable-documentation to cabal-install enables documentation
for any component in the build plan honoring the respective
flags for "second class" doc targets from configuration
or CLI.
Invoking new-haddock with a target selector will make sure
the respective flags for "second class" doc targets are set
correctly. E.g.
$ new-haddock tests
Will generate documentation for the test suite of your package
even if you have tests: false in your haddock configuration.
Merge pull request #5226 from alexbiehl/pr/haddock-components
0 commit comments