gpt4 book ai didi

haskell - ghc-pkg 检查黑线鳕警告

转载 作者:行者123 更新时间:2023-12-04 12:32:04 25 4
gpt4 key购买 nike

homebrew 上全新安装 haskell 平台(通过 GHC x64 7.6.3 )(OSX 10.9.2 )我在运行 ghc-pkg check 时收到以下警告(见下文)

Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html/ghc-mod.haddock doesn't exist or isn't a file
Warning: haddock-html: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/hlint-1.8.59/html/hlint.haddock doesn't exist or isn't a file
Warning: haddock-html: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/hlint-1.8.59/html doesn't exist or isn't a directory
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/mtl-2.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/transformers-0.3.0.0/html/transformers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/transformers-0.3.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/case-insensitive-1.0.0.1/html/case-insensitive.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/case-insensitive-1.0.0.1/html doesn't exist or isn't a directory

根据文档:
ghc-pkg check
Check the consistency of package depenencies and list broken packages.
Accepts the --simple-output flag.

我尝试运行以下命令来生成黑线鳕文档无济于事:
sudo cabal install --reinstall --force-reinstalls --enable-documentation

该命令来自用户在 haskell 邮件列表中的一个类似问题。
http://www.haskell.org/pipermail/glasgow-haskell-users/2012-February/021780.html

我该如何安抚 ghc-pkg check并删除这些警告?

警告 : 当我说“全新安装”时,我的意思是我已经从头安装了 Haskell 平台,并在全局安装了 cabal-1.18.0.3并将 cabal 的 bin 目录添加到我的路径中。

最佳答案

那些黑线鳕警告很烦人,但它们不会引起任何问题,AFAIK。我认为这些警告在 Cabal 1.18 中已修复。我再也见不到他们了。

编辑:好的,所以我们需要遵循 kosmikus 的建议......

mv ~/.cabal ~/.cabal.SAVE
cabal update

这将创建文件 ~/.cabal/config。如果您愿意,可以编辑此文件。

现在尝试构建一些东西,看看问题是否消失了。

关于haskell - ghc-pkg 检查黑线鳕警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22554498/

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