Modulecabal-install-3.18.1.0Haskell2010
Distribution.Client.CmdHaddock
cabal-install CLI command: haddock
Synopsis
- value haddockCommand
- value haddockAction
- newtype ClientHaddockFlags
- value selectPackageTargets
- value selectComponentTarget
- Packagecabal-install-3.18.1.0
- Exports5
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCmdHaddock.hs
The haddock CLI and action
The haddock command is TODO.
For more details on how this works, see the module Distribution.Client.ProjectOrchestration
Constructors
Internals exposed for testing
This defines what a TargetSelector means for the haddock command.
It selects the AvailableTargets that the TargetSelector refers to,
or otherwise classifies the problem.
For the haddock command we select all buildable libraries. Additionally,
depending on the --executables flag we also select all the buildable exes.
We do similarly for test-suites, benchmarks and foreign libs.
For a TargetComponent TargetSelector, check if the component can be selected.
For the haddock command we just need the basic checks on being buildable
etc.