Why doesn't cabal haddock --hyperlink-source generate source HTML files?

For the cabal project, I wanted to generate documentation for the documentation with hyperlinks to the source code, so I did the usual:

cabal haddock --hyperlink-source

Links were generated, but after clicking the links, I found that the actual source code is not included, even if there are links. Source code must be rendered via HTML. How do I generate them?


Currently used:

  • Cabal 1.22.4.0
  • cabal-install 1.22.6.0
  • haddock 2.16.1
+4
source share
1 answer

It turns out that this is because hscolour has not been installed. Installation via:

cabal install hscolour

fixed problem.

, ,

Warning: The program 'hscolour' version >=1.8 is required but it could not be found.

, .

+7

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


All Articles