I'm trying to make the documentation for my package. When I run the cabal haddock --executable
it gives the following output:
Running Haddock for Geometroid-0.1...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: array-0.4.0.0, base-4.5.0.0,
rts-1.0, deepseq-1.3.0.0, ghc-prim-0.2.0.0, integer-gmp-0.4.0.0,
old-locale-1.0.0.4, random-1.0.1.1, time-1.4
Preprocessing test suite 'test-fighter' for Geometroid-0.1...
Preprocessing executable 'fighter' for Geometroid-0.1...
Haddock coverage:
20% ( 1 / 5) in 'Fighter'
Warning: Fighter: could not find link destinations for:
GHC.Types.Int GHC.Show.Show System.Random.Random GHC.Types.Double GHC.Classes.Eq GHC.Classes.Ord
Documentation created: dist/doc/html/Geometroid/fighter/index.html
And in the generated documentation there are indeed no links to built-in types.
I tried generating all the documentation for installed packages according to this answer, but it didn't change anything.
I'm using Ubuntu 12.04 with haskell-platform
installed via apt-get
.
How can I generate the complete documentation with all the proper links?
ghc-doc
. – Joachim Breitner