I am trying to generate API documentation via cabal and haddock. I want it to be latex. So I do:
cabal haddock --haddock-option=--latex
This fails ultimately with:
haddock: internal error: declaration not supported by declNames
Is there something I can do or is something wrong with haddock?
FYI, I have to use cabal since the build process is rather complicated (lots of preprocessors, ffi libraries, ...). Invoking haddock manually is really painful.
Building HTML documentation however is working completely as expected.
The complete output is at http://pastebin.com/xt6rWqde .
I am using:
cabal-install version 0.14.0
using version 1.14.0 of the Cabal library
The Glorious Glasgow Haskell Compilation System, version 7.4.2
Haddock version 2.11.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008