更新时间:2023-01-23 17:45:43
希望我们谈论 haddock
命令行选项 - 超链接源
(请注意超链接 ed )。
版本2.16.1不支持 - 超链接源
选项。
版本2.16.2支持 - 超链接源
选项。
您可能必须从git repo构建2.16.2:
https://github.com/haskell/haddock
$ 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?
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: