Haddock cannot find documentation for installed packages

I am trying to make documentation for my package. When I run cabal haddock --executable , it gives the following result:

 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 actually no references to built-in types.

I tried to create all the documentation for installed packages according to this answer , but didn't change anything.

I am using Ubuntu 12.04 with haskell-platform installed via apt-get .

How can I generate full documentation with all relevant links?

+4
source share
1 answer

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.

+3
source

Source: https://habr.com/ru/post/1497094/


All Articles