haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 243 forks source link

How to test Haddock? #1542

Closed parsonsmatt closed 1 year ago

parsonsmatt commented 1 year ago

I'm doing some performance optimizations to Haddock and I can't figure out a good way to actually test it.

cabal haddock appears to use the Haddock that's hardcoded into GHC, and I can't figure out a way to get it to respect an external binary.

Any advice?

parsonsmatt commented 1 year ago

Ah, cabal haddock --with-haddock works. Couldn't find it with cabal haddock --help | grep haddock because it shows up as --with-PROG.