Haskell Cabal 为所有已安装的软件包重新生成文档
如何为所有本地安装的 cabal 软件包生成并安装文档?我在 ~/.cabal/config 中打开了文档标志,这意味着所有新安装的软件包也将生成文档。但是如何为所有已安装的软件包生成文档呢?
有没有办法自动 cabal install --reinstall
所有已安装的软件包?更重要的是,这是个好主意吗?
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?
Is there a way to automatically cabal install --reinstall
all already installed packages? And more importantly, is that a good idea?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您有
cabal-install
的最新版本(我认为>= 0.10),您可以尝试这样做不幸的是,它在我的情况下不起作用:
如果您遇到错误像这样,您可以尝试手动编辑
~/.cabal/world
文件。If you have a recent-ish version of
cabal-install
(>= 0.10, I think), you can try doingUnfortunately, it didn't work in my case:
If you bump into an error like this, you can try manually editing the
~/.cabal/world
file.请注意,
cabal install --only-dep --reinstall
不起作用。如果您使用的是沙箱,则可以执行
-j
选项允许其并行构建。Please note that
cabal install --only-dep --reinstall
does not work.If you are using a sandbox, you can do
The
-j
option allows it to build in parallel.你可以在 bash 中尝试这样的事情。
但我真的不知道这是否是一个好主意。
You could try something like this in bash.
But I really don't know, whether it's a good idea.