I was trying to add the IDE Leksah, and some of the parts have dependencies on specific versions of haddock. Haddock is provided by the ghc package, but it's not listed in ghc-pkg list. I can take the lines mentioning haddock dependencies out of .cabal files (since that's provided anyways), but some of the source files, e.g. line 150 of src/IDE/Metainfo/SourceCollectorH.hs in the leksah-server package, have cpp directives like: