Closed amigalemming closed 6 months ago
Found this related ticket: https://github.com/haskell/haddock/issues/519
But how can I pass haddock options through cabal haddock
? Cabal seems to ignore options --haddock-option
and --haddock-options
.
@amigalemming can I encourage you to open a ticket on the cabal tracker? This seems more related to how these options are processed by cabal
. :)
That being said once we have the answer I'd be more than happy to put the instructions in the CONTRIBUTING file
Hm, today Cabal's haddock-option passing works. Strange. I have checked with cabal
's -v
option.
My command line from initial post now works by passing haddock
's --lib
option, however it does not work with a symbolic link and it needs an absolute path and tilde expansion is not applied (the latter one is certainly a shell issue). So this one works for me:
mypkg$ cabal-3.10 haddock --with-ghc=/usr/local/ghc/9.4.7/bin/ghc --with-haddock=/tmp/my-custom-haddock-build/haddock --haddock-option="--lib=$HOME/haddock-git/haddock-api/resources"
Could you please add a line to CONTRIBUTING.md, telling how to actually apply a modified haddock to Cabal packages? I tried:
But I get: