Haskell Cabal为所有安装的软件包重新生成文档 [英] Haskell Cabal regenerate documentation for all installed packages

查看:149
本文介绍了Haskell Cabal为所有安装的软件包重新生成文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为所有本地安装的套件包生成和安装文档?我打开了〜/ .cabal / config中的文档标志,这意味着所有新安装的软件包都将生成文档。但是如何为所有已安装的软件包生成文档?

How can I generate and install documentation for all locally installed cabal packages? I turned on the documentation flag in ~/.cabal/config which means that all newly installed packages will have documentation also generated. But how to generate documentation for all already installed packages?

有没有办法自动 cabal install --reinstall 所有已经安装的包?更重要的是,这是一个好主意?

Is there a way to automatically cabal install --reinstall all already installed packages? And more importantly, is that a good idea?

推荐答案

如果你有一个最近版本的 cabal-install (> = 0.10,我想),你可以尝试做

If you have a recent-ish version of cabal-install (>= 0.10, I think), you can try doing

$ cabal install --reinstall --upgrade-dependencies world

不幸的是,它在我的情况下不起作用:

Unfortunately, it didn't work in my case:

$ cabal install --dry-run --reinstall world
Resolving dependencies...
cabal: cannot configure Agda-2.2.10. It requires haskell-src-exts >=1.9.6 &&
<1.10
For the dependency on haskell-src-exts >=1.9.6 && <1.10 there are these
packages: haskell-src-exts-1.9.6. However none of them are available.
haskell-src-exts-1.9.6 was excluded because haskell-src-exts-1.11.1 was
selected instead
haskell-src-exts-1.9.6 was excluded because hlint-1.8.12 requires
haskell-src-exts ==1.11.*

如果你碰撞变成这样的错误,您可以尝试手动编辑〜/ .cabal / world 文件。

If you bump into an error like this, you can try manually editing the ~/.cabal/world file.

这篇关于Haskell Cabal为所有安装的软件包重新生成文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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