ghc bindist doesn't bundle up the assets needed for hyperlinked-source properly and doesn't treat certain base modules right
i've had to copy some files that aren't shipped with ghc, or perhaps i need to reinstall haddock in userland?
~ $ haddock --hyperlinked-source haddock: internal error: /Users/carter/.install-ghc/ghc-22.214.171.12460417/lib/ghc-126.96.36.19960417/html/solarized.css: copyFile: does not exist (No such file or directory) ~ $ cp /Users/carter/.install-ghc/ghc-188.8.131.5260417/share/doc/ghc-184.108.40.20660417/html/libraries/base-220.127.116.11/src/style.css /Users/carter/.install-ghc/ghc-18.104.22.16860417/lib/ghc-22.214.171.12460417/html/solarized.css cp /Users/carter/.install-ghc/ghc-126.96.36.19960417/share/doc/ghc-188.8.131.5260417/html/libraries/base-184.108.40.206/src/highlight.js /Users/carter/.install-ghc/ghc-220.127.116.1160417/lib/ghc-18.104.22.16860417/html/highlight.js
additionally i need to set
correctly in the ~/.cabal/config file, and if thats set wrong, source files are silently not generated as part of the docs, so debugging a typo there is pretty confusing!
sooo... either way, there seems to be two missing asset files in my build! namely those two files i had to CP!
as additional data, heres the customized perf build way i did
EXTRA_HADDOCK_OPTS=--hyperlinked-source HADDOCK_DOCS = YES BUILD_SPHINX_HTML = YES BUILD_SPHINX_PDF = YES libraries/integer-gmp_CONFIGURE_OPTS += --configure-option=--with-intree-gmp
my "debugging technique" was to run
haddock --hyperlinked-source and figure out what file is in the pretty builds and CP that over to the location haddock was complaining about and repeat