我想在Yesod-auth-oauth中使用Yesod Web框架,但在cabal-dev install
时遇到依赖问题:
/Users/kenta/myapp/oryza% cabal-dev install
Resolving dependencies...
cabal: cannot configure yesod-platform-1.0.2. It requires data-default ==0.4.0
For the dependency on data-default ==0.4.0 there are these packages:
data-default-0.4.0. However none of them are available.
data-default-0.4.0 was excluded because authenticate-oauth-1.3.0 requires
data-default ==0.3.*
data-default-0.4.0 was excluded because data-default-0.3.0 was selected
instead
data-default-0.4.0 was excluded because oryza-0.0.0 requires data-default
==0.3.*
我不知道出了什么问题。
我做的只是在Cabal文件中插入一行:
yesod-auth-oauth >= 1.0 && < 1.1
默认的脚手架工作正常,通过yesod init
创建。
版本信息
感谢。
答案 0 :(得分:1)
这看起来像authenticate-oauth包中的上限过于严格。最好直接与该软件包的维护者联系。
一般而言,这类问题是遵循Package Versioning Policy的副作用。基本上,在这些“拒绝编译”烦恼和更加阴险的“无法编译”问题之间进行权衡。
答案 1 :(得分:0)
我不记得了,但我认为 my change to the cabal file对于yesod-auth-oauth解决了这个问题。