gpt4 book ai didi

haskell - 黑线鳕 "could not find link destinations for"

转载 作者:行者123 更新时间:2023-12-01 13:51:53 25 4
gpt4 key购买 nike

我尝试使用 haddock 为库生成文档,当它工作时,它不会链接属于 GHC/标准库的任何类型并发出此错误:

Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: array-0.4.0.1, base-4.6.0.1,
binary-0.5.1.1, rts-1.0, bytestring-0.10.0.2, containers-0.5.0.0,
deepseq-1.3.0.1, ghc-prim-0.3.0.0, integer-gmp-0.5.0.0, utf8-string-1
Haddock coverage:
93% ( 14 / 15) in 'projectname'
Warning: SHA1: could not find link destinations for:
GHC.Base.String Data.ByteString.Lazy.Internal.ByteString GHC.Word.Word32 GHC.Integer.Type.Integer GHC.Types.Int Data.Sequence.Seq

现在我搜索了一下,发现解决方案是尝试使用 haddock install array-0.4.0.1 base-4.6.0.1 binary-0.5.1.1 rts-1.0 bytestring-0.10.0.2 containers-0.5.0.0 deepseq-1.3.0.1 ghc-prim-0.3.0.0 integer-gmp-0.5.0.0 utf8-string-1 --enable-documentation 重新安装这些包,但它失败了
cabal: Could not resolve dependencies:
rejecting: base-4.8.0.0, 4.7.0.2, 4.7.0.1, 4.7.0.0 (global constraint requires
==4.6.0.1)
rejecting: base-4.6.0.1 (only already installed instances can be used)
rejecting: base-4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0,
4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0, 3.0.3.2, 3.0.3.1 (global
constraint requires ==4.6.0.1)

甚至没有找到一个名为 rts 的包。到底是怎么回事?

最佳答案

在 Debian 和 Ubuntu 上,Haskell 平台文档在单独的包 ( haskell-platform-doc ) 中提供。您可以使用 apt-get 安装它:

sudo apt-get install haskell-platform-doc

我建议也安装分析库 ( haskell-platform-prof )。

关于haskell - 黑线鳕 "could not find link destinations for",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31095109/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com