What's the reason behind cabal (dependency) hell?

前端 未结 3 1400
心在旅途
心在旅途 2020-12-19 05:19

How does dependency hell happen in Cabal-install?

I read the following at Cabal/Survival - HaskellWiki:

1. What is the difficulty caused by C

3条回答
  •  梦毁少年i
    2020-12-19 05:52

    You have scenarios like this:

    enter image description here

    Where both B and C depend on A. However, if they were installed at different times, they may depend on different versions of A. For example, A version 1 export type T = Int, but in version 2 it exports type T = Bool.

    Only when you try to build D do you expose the problem that B and C were build against different versions of A, and you can't compare T version 1 against T version 2.

提交回复
热议问题