为yesod设置安装快速记录器时出错,Ubuntu

时间:2015-03-03 19:52:44

标签: haskell ubuntu cabal yesod

我一直在努力让Yesod跑步。在构建之前,我最终只能找到一个缺少依赖项的快速记录器。但是,当我跑

cabal install fast-logger-2.2.3

我收到以下错误消息:

System/Log/FastLogger/IO.hs:9:8:
    Could not find module `Blaze.ByteString.Builder.Internal.Types'
    It is a member of the hidden package `blaze-builder-0.3.3.4'.
    Perhaps you need to add `blaze-builder' to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.
Failed to install fast-logger-2.2.3
cabal: Error: some packages failed to install:
fast-logger-2.2.3 failed during the building phase. The exception was:
ExitFailure 1

我的第一直觉是安装blaze-builder,以防它丢失。但是,似乎安装得很好。这是快速记录器包的问题吗?

1 个答案:

答案 0 :(得分:1)

我建议您在所有项目中使用Stackage LTS cabal.config文件,以消除因版本不匹配而导致的大多数问题。

Nuke并重新初始化cabal沙箱,将文件放入项目cabal install --only-dep -j,你应该没有问题。