我想将 Yesod Web 框架与 yesod-auth-oauth 一起使用,但我遇到了一个依赖问题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
.
版本信息
- 是的核心:1.0.1
- cabal-dev:0.9.1(使用 Cabal 1.14.0 构建)
- 阴谋安装:0.10.2
- GHC:7.0.4
- 操作系统:Mac OS X Lion
谢谢。