4

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?

Community
  • 1
  • 1
Michael Pankov
  • 3,581
  • 2
  • 23
  • 31

1 Answers1

3

If you use the Haskell packages provided by your distribution (which seems to be the case), then the documentation comes in separate packages. In your case, apt-get install haskell-platform-doc or just apt-get install ghc-doc should help.

Joachim Breitner
  • 25,395
  • 6
  • 78
  • 139
  • 3
    It helped indeed: now there are all the links and the only thing which annoys me is the warning about `rts` package: `Warning: The documentation for the following packages are not installed. No links will be generated to these packages: rts-1.0`. I couldn't even find what the package is for. – Michael Pankov Aug 15 '13 at 21:34
  • I have that too and I’ve been ignoring it for long. You can probably do the same. – Joachim Breitner Aug 15 '13 at 22:13