summaryrefslogtreecommitdiff
path: root/rules/haddock.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules/haddock.mk')
-rw-r--r--rules/haddock.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/haddock.mk b/rules/haddock.mk
index e624e4afb1..4f084f86e3 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -40,6 +40,9 @@ endif
.PHONY: html_$1
html_$1 : $$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE)
+# See Note [inconsistent distdirs] in rules/build-package-way.mk for why
+# we hard-code dist-install; GHC will use stage2/stage3 here so we
+# cannot use the distdir parameter.
$$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_DEPS = $$(foreach n,$$($1_$2_DEPS),$$($$n_HADDOCK_FILE) $$($$n_dist-install_$$(HADDOCK_WAY)_LIB))
# We don't pass -dcore-lint to haddock because it caused a performance regression in #13789