Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Heroku上的Yesod:无法解析依赖项,Yesod-1.1.9.2_Heroku_Yesod - Fatal编程技术网

Heroku上的Yesod:无法解析依赖项,Yesod-1.1.9.2

Heroku上的Yesod:无法解析依赖项,Yesod-1.1.9.2,heroku,yesod,Heroku,Yesod,我用yesod init创建了一个新的应用程序,然后按照教程将其部署到Heroku 部署失败,原因是: -----> Updating Cabal Config file path source is default config file. Config file /app//.cabal/config not found. Writing default configuration to /app//.cabal/config Downloading the latest packag

我用
yesod init
创建了一个新的应用程序,然后按照教程将其部署到Heroku

部署失败,原因是:

-----> Updating Cabal
Config file path source is default config file.
Config file /app//.cabal/config not found.
Writing default configuration to /app//.cabal/config
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
-----> Release the hounds! Installing application
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: lol-0.0.0
trying: yesod-1.1.9.2
 !     Heroku push rejected, failed to compile Haskell app

To git@heroku.com:nameless-savannah-3054.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:nameless-savannah-3054.git'`
我的阴谋集团文件就是由
yesod init
生成的:

name:              lol
version:           0.0.0
cabal-version:     >= 1.8
build-type:        Simple

Flag dev
    Description:   Turn on development settings, like auto-reload templates.
    Default:       False

Flag library-only
    Description:   Build for use with "yesod devel"
    Default:       False

library
    exposed-modules: Application
                     Foundation
                     Import
                     Model
                     Settings
                     Settings.StaticFiles
                     Settings.Development
                     Handler.Home

    if flag(dev) || flag(library-only)
        cpp-options:   -DDEVELOPMENT
        ghc-options:   -Wall -O0
    else
        ghc-options:   -Wall -O2

    extensions: TemplateHaskell
                QuasiQuotes
                OverloadedStrings
                NoImplicitPrelude
                CPP
                MultiParamTypeClasses
                TypeFamilies
                GADTs
                GeneralizedNewtypeDeriving
                FlexibleContexts
                EmptyDataDecls
                NoMonomorphismRestriction

    build-depends: base                          >= 4          && < 5
                 -- , yesod-platform                >= 1.1        && < 1.2
                 , yesod                         >= 1.1.5      && < 1.2
                 , yesod-core                    >= 1.1.7      && < 1.2
                 , yesod-auth                    >= 1.1        && < 1.2
                 , yesod-static                  >= 1.1        && < 1.2
                 , yesod-default                 >= 1.1        && < 1.2
                 , yesod-form                    >= 1.1        && < 1.3
                 , clientsession                 >= 0.8        && < 0.9
                 , bytestring                    >= 0.9        && < 0.11
                 , text                          >= 0.11       && < 0.12
                 , persistent                    >= 1.1        && < 1.2
                 , persistent-sqlite             >= 1.1        && < 1.2
                 , persistent-template           >= 1.1.1      && < 1.2
                 , template-haskell
                 , hamlet                        >= 1.1        && < 1.2
                 , shakespeare-css               >= 1.0        && < 1.1
                 , shakespeare-js                >= 1.0.2      && < 1.2
                 , shakespeare-text              >= 1.0        && < 1.1
                 , hjsmin                        >= 0.1        && < 0.2
                 , monad-control                 >= 0.3        && < 0.4
                 , wai-extra                     >= 1.3        && < 1.4
                 , yaml                          >= 0.8        && < 0.9
                 , http-conduit                  >= 1.8        && < 1.10
                 , directory                     >= 1.1        && < 1.3
                 , warp                          >= 1.3        && < 1.4
                 , data-default
                 , aeson
                 , conduit                       >= 1.0
                 , monad-logger                  >= 0.3
                 , fast-logger                   >= 0.3

executable         lol
    if flag(library-only)
        Buildable: False

    main-is:           main.hs
    hs-source-dirs:    app
    build-depends:     base
                     , lol
                     , yesod-default

    ghc-options:       -threaded -O2

test-suite test
    type:              exitcode-stdio-1.0
    main-is:           main.hs
    hs-source-dirs:    tests
    ghc-options:       -Wall

    build-depends: base
                 , lol
                 , yesod-test >= 0.3 && < 0.4
                 , yesod-default
                 , yesod-core
                 , persistent
                 , persistent-sqlite
                 , resourcet
                 , monad-logger
name:lol
版本:0.0.0
阴谋集团版本:>=1.8
构建类型:简单
旗舰开发
描述:启用开发设置,如自动重新加载模板。
默认值:False
仅限标志库
描述:与“yesod-devel”一起使用的构建
默认值:False
图书馆
公开模块:应用程序
基础
进口
模型
设置
设置.静态文件
背景、发展
主人,回家
if标志(开发)| |标志(仅库)
cpp选项:-数据开发
ghc选项:-墙-O0
其他的
ghc选项:-墙壁-氧气
扩展名:TemplateHaskell
准晶体
重载字符串
无mplicitprelude
CPP
多分支类型类
类型族
游荡者
广义newtypedering
灵活语境
空数据库
诺模同构约束
构建取决于:基>=4&<5
--,yesod平台>=1.1&<1.2
,YesSOD>=1.1.5&&<1.2
,yesod核心>=1.1.7&<1.2
,yessod auth>=1.1&<1.2
,yesod静态>=1.1&<1.2
,是的,默认值>=1.1&<1.2
是的,形式>=1.1&<1.3
,客户端会话>=0.8&<0.9
,bytestring>=0.9&<0.11
,text>=0.11&&<0.12
,持续>=1.1&&<1.2
,持久sqlite>=1.1&<1.2
,持久化模板>=1.1.1&&<1.2
,模板haskell
,哈姆雷特>=1.1&<1.2
,莎士比亚css>=1.0&<1.1
,莎士比亚js>=1.0.2&&<1.2
,莎士比亚文本>=1.0&<1.1
,hjsmin>=0.1&<0.2
,单子对照>=0.3&<0.4
,wai extra>=1.3&&<1.4
,yaml>=0.8&<0.9
,http conduct>=1.8&&<1.10
,目录>=1.1&&<1.3
,翘曲>=1.3&&<1.4
,数据默认值
,伊森
,导管>=1.0
,monad记录器>=0.3
,快速记录器>=0.3
可执行lol
if标志(仅限库)
可构建:False
main是:main.hs
hs源目录:应用程序
构建取决于:基础
英雄联盟
,是的,默认
ghc选项:-螺纹-氧气
测试套件测试
类型:exitcode-stdio-1.0
main是:main.hs
hs源目录:测试
ghc选项:-墙
构建取决于:基础
英雄联盟
,yesod测试>=0.3&<0.4
,是的,默认
,叶草芯
持久的
,持久性sqlite
,资源
,单子记录器
关于原因有什么想法吗


编辑:我还应该提到,它在OS X上本地构建得很好。

使用以下构建包(而不是教程中链接的构建包)修复了该问题: