为什么不是Cabal超链接我的来源? [英] Why isn't Cabal hyperlinking my sources?

查看:192
本文介绍了为什么不是Cabal超链接我的来源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用版本1.22.2.0的Cabal库


$ cabal install --haddock-hyperlink-source光泽多汁
警告:/home/theking/.cabal/config:无法识别的字段超链接源
行91
code>

我的配置中有 hyperlink-source:True 。我加了这个标志只是为了多余。当我查找文档时,它全部都是彩色化的,并且所有内容都是,但源代码没有链接。我做错了什么?

解决方案

希望我们谈论 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:

https://github.com/haskell/haddock

这篇关于为什么不是Cabal超链接我的来源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆