Haddock support
Bazel

Haddock support


haskell_doc

haskell_doc(name, deps, index_transitive_deps)

Create API documentation.

Builds API documentation (using Haddock) for the given Haskell libraries. It will automatically build documentation for any transitive dependencies to allow for cross-package documentation linking.

Attributes

name

Name; Required

A unique name for this rule.

deps

List of labels; Optional; Default is []

List of Haskell libraries to generate documentation for.

index_transitive_deps

Boolean; Optional; Default is False

Whether to include documentation of transitive dependencies in index.

Examples

haskell_library(
  name = "my-lib",
  ...
)

haskell_doc(
  name = "my-lib-doc",
  deps = [":my-lib"],
)