What is the relationship between ghc-pkg and cabal?

前端 未结 2 2002
长情又很酷
长情又很酷 2021-02-01 03:05

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 on

2条回答
  •  终归单人心
    2021-02-01 03:31

    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.
    

提交回复
热议问题