Why isn't Cabal hyperlinking my sources?

喜欢而已 提交于 2020-01-24 08:12:05

问题


$ cabal --version
cabal-install version 1.22.2.0
using version 1.22.2.0 of the Cabal library 


$ cabal install --haddock-hyperlink-source gloss-juicy
Warning: /home/theking/.cabal/config: Unrecognized field hyperlink-source on
line 91

I do have hyperlink-source: True on in my config. I added the flag just to be redundant. When I look for the docs, it is all colorized and everything, but the source code isn't linkified. What am I doing wrong?


回答1:


Hopefully we're talking about the haddock command line option --hyperlinked-source (note hyperlinked).

Version 2.16.1 does not support the --hyperlinked-source option.

Version 2.16.2 does support the --hyperlinked-source option.

You might have to build 2.16.2 from the git repo:

https://github.com/haskell/haddock



来源:https://stackoverflow.com/questions/32236857/why-isnt-cabal-hyperlinking-my-sources

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!