-
Notifications
You must be signed in to change notification settings - Fork 718
Closed
Labels
cabal-install: v2-build systemAffecting v2-build and related commands that use v2-architecture (aka "nix local builds").Affecting v2-build and related commands that use v2-architecture (aka "nix local builds").type: user-question
Description
Summary. There are a few ways to do it:
- The most straightforward approach is to introduce Haddock as an extra "target" that can be applied to a component. There is a major downside to this approach, which is that you have to rebuild the libraries when you want to rebuild the Haddocks (because they count as separate "packages" from the perspective of the store). As an addendum to this, you could have some configuration option to stop transitively building Haddock at some point, to avoid thrashing the store (in case you only care about Haddocks for inplace.)
- A better solution is to somehow treat the Haddock documentation as a separate component that can be installed separately.
I see code to do it (c.f. HaddockDefaultComponents), but I don't see anywhere which constructs this?
phadej, chris-martin, nomeata, lapplislazuli and lebensterben
Metadata
Metadata
Assignees
Labels
cabal-install: v2-build systemAffecting v2-build and related commands that use v2-architecture (aka "nix local builds").Affecting v2-build and related commands that use v2-architecture (aka "nix local builds").type: user-question