
On Sun, Mar 04, 2007 at 07:58:59PM +0000, Neil Mitchell wrote:
Hi
I tried that but I guess I was too impatient to figure out what exactly haddock wants (it seemed to choke on #ifdefs), so I just used the hoogle.txt from darcs and ran it through sed.
Haddock can't cope with #ifdef's, or .lhs files - haddock-ghc will be able to (the next version), so hopefully soon you'll have less of a problem. I just use runhaskell Setup haddocck --hoogle through Cabal, and that handles preprocessing etc.
Of course, taking hoogle.txt gives you the same result (thats how I got hoogle.txt) and less work :)
Is haddock-ghc still the next version? It wouldn't even compile without minor modifications (it seems to be incompatible with the current version of cabal); and when I tried to run it: stefan@stefans:/tmp/HAppS_0$ haddock-ghc --html --dump-interface=dist/doc/html/HAppS.haddock --prologue=HAppS-0.9.0-haddock-prolog.txt --use-package=HaXml-1.13.2 --use-package=mtl-1.0 --use-package=network-2.0 --use-package=stm-2.0 --use-package=template-haskell-2.0 --use-package=regex-compat-0.71 --use-package=binary-0.2 --use-package=HList-0.1 --title=HAppS-0.9.0: --odir=dist/doc/html `find dist/build/tmp/src/HAppS -name '*.hs'` Warning: Cannot use package base: HTML directory /usr/local/share/ghc-6.7.20070223/html/libraries/base does not exist. haddock-ghc: panic! (the 'impossible' happened) (GHC version 6.7.20070223 for i386-unknown-linux): a static opt was looked at too early! Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug (Is it still worth reporting if it is the GHC API?)