启用 - hyperlink-source for“cabal install” [英] Enable --hyperlink-source for "cabal install"

查看:115
本文介绍了启用 - hyperlink-source for“cabal install”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

cabal haddock 命令非常有用--hyperlink-source选项。
我希望在使用 cabal install 构建文档时将源代码链接超链接。



517似乎只是关于它: http://hackage.haskell.org/trac/hackage / ticket / 517



但是,也许可以通过〜/ .cabal / config文件设置此标志?



如果没有,我怎样才能在没有安装Cabal-1.9的情况下使用#517中的补丁进行工作cabal-install build,目前这是强制性的(由于从12月份开始的一个补丁)?

解决方案

当您使用code选项时,您无法获得与 - 超链接源全部在一个 cabal install 命令中。您引用的票据正是关于这个问题。


The command cabal haddock has very useful --hyperlink-source option. I would like to have the source hyperlinked when building documentation with cabal install.

The ticket #517 seems to be just about it: http://hackage.haskell.org/trac/hackage/ticket/517

However, perhaps it is possible to set this flag via ~/.cabal/config file?

If not, how can I get working cabal-install build with the patch from #517 without installing Cabal-1.9, which is currently mandatory (due to one patch from December)?

解决方案

Currently you cannot get the equivalent of the --hyperlink-source option when using the "all in one" cabal install command. The ticket you cite is exactly about this issue.

这篇关于启用 - hyperlink-source for“cabal install”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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