Use relative URLs in the GHC API haddock docs; fixes #2755
[ghc-hetmet.git] / compiler / Makefile
index 14347ed..b970c20 100644 (file)
@@ -212,6 +212,7 @@ build.stage.%:
 
 doc.stage.%:
        $(CABAL) haddock --distpref dist-stage$* \
+                                        --html-location='../$$pkg' \
                         --haddock-option=--optghc=-DSTAGE=$* \
                         --haddock-option=+RTS --haddock-option=-s --haddock-option=-c --haddock-option=-RTS \
                         --with-haddock=$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace/bin/haddock