ghc-pkg和cabal之间的关系是什么? [英] What is the relationship between ghc-pkg and cabal?
本文介绍了ghc-pkg和cabal之间的关系是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
关于如何在Haskell中创建,安装和使用包, ghc-pkg 和 cabal ?
他们的角色是什么 - 你们什么时候使用一种,哪种比较好,或者同时使用两种? p
工具,或简单的工具,做不同的工作?
解决方案
以图形方式,依赖项是:
GHC包可以使用
|
使用ghc-pkg注册
|进行注册
并且(几乎总是)用Cabal
|构建
通过cabal-install
|解决了构建依赖关系
来自Hackage。
With respect to how packages are created, installed and used in Haskell, what is the relationship between ghc-pkg and cabal?
What are their roles - when would you use one, over the other, or use both?
Are they complementary tools, competitive tools, or simply tools that do different jobs?
解决方案
Graphically, the dependencies are:
Packages GHC can use
|
Are registered with "ghc-pkg register"
|
And (almost always) built with Cabal
|
With build dependencies resolved by cabal-install
|
From Hackage.
这篇关于ghc-pkg和cabal之间的关系是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文