Skip to content

How do I haddock with new-build? #3535

Closed
@ezyang

Description

@ezyang

Summary. There are a few ways to do it:

  1. 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.)
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions