Haskell Stack package installation error

前端 未结 2 1704
清歌不尽
清歌不尽 2021-01-16 15:49
user$: stack install dictionaries

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for dictionaries-0.1.0.0         


        
2条回答
  •  情书的邮戳
    2021-01-16 16:00

    Easiest one: Add allow-newer: true to stack.yaml

    It would to be the solution in this case. It solves the upper version limitation problem like yours. But of course there is possibility of build failure.

    Maybe possible one: Change resolver to latest nightly

    That failure occurs sometimes on nightly snapshot. And usually repaired soon by library update and new nightly snapshot. If you are using old snapshot, change it to latest. Or waiting may be one of solution.

    Most general one: Make dependency to modified local package

    You can do it by adding the package path to stack.yaml packages:. Then stack will use it instead of snapshot one.

    The way you want is probably not a good idea. Even if that's possible, how are you going to handle with the many version of snapshot case? Local dependencies should be specified to each package.

提交回复
热议问题