Closed
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?