Windows 7上的Haskell Yesod:使用“yesod devel”问题启动开发服务器

时间:2012-12-13 16:50:54

标签: haskell yesod

我是Haskell的新手,我目前正在使用Windows 7操作系统。

我正在尝试使用Haskell框架Yesod开发Web服务。当我执行yesod devel命令启动开发服务器时,出现以下错误:

C:\Users\Sticky\workspace\Yesod\testYesod>yesod devel 
Yesod devel server. Press ENTER to quit
Resolving dependencies...
Configuring testYesod-0.0.0...
cabal: At least the following dependencies are missing:
data-default -any,
hamlet ==1.1.*,
hjsmin ==0.1.*,
http-conduit >=1.5 && <1.7,
monad-control ==0.3.*,
persistent ==1.0.*,
persistent-sqlite ==1.0.*,
shakespeare-css ==1.0.*,
shakespeare-js ==1.0.*,
shakespeare-text ==1.0.*,
wai-extra ==1.3.*,
warp ==1.3.*,
yaml ==0.8.*,
yesod ==1.1.*,
yesod-auth ==1.1.*,
yesod-core >=1.1.2 && <1.2,
yesod-default ==1.1.*,
yesod-form ==1.1.*,
yesod-static ==1.1.*,
yesod-test ==0.3.*
Rebuilding application...
Forcing recompile for .\Model.hs because of config/models
Forcing recompile for .\Foundation.hs because of config/routes
Forcing recompile for .\Foundation.hs because of messages/en.msg
Forcing recompile for .\Foundation.hs because of templates/default-layout-wrappe
r.hamlet
Forcing recompile for .\Foundation.hs because of templates/default-layout.hamlet

Forcing recompile for .\Handler\Home.hs because of templates/homepage.hamlet
cabal: Run the 'configure' command fBuild failure, pausing...
irst.

我试图运行cabal configure这似乎执行得很好,虽然我觉得我因为缺乏经验而缺少某些东西,任何方向都会非常感激。我无法找到任何相关的问题,但这可能是因为我不知道我需要知道什么:)

1 个答案:

答案 0 :(得分:2)

看起来没有安装项目的依赖项。在项目目录中运行以下命令:

# alex at least, possibly also happy, are required by hjsmin
cabal install happy alex 
# Make sure alex is on your path, then
cabal install --only-dependencies