Haskell:Lambdabot安装无法完成

时间:2014-10-21 21:42:11

标签: haskell cabal-install lambdabot

我正在尝试安装lambdabot。安装保持在步骤74/100终止,并在下面给出错误。

有关如何解决的任何建议?有没有人遇到过类似的问题?

如果相关,我正在尝试使用以下命令进行安装(以便将其指向之前抱怨的pcre文件):sudo cabal install "--extra-include-dirs=/usr/local/lib/")

src/Lambdabot/Plugin/Pointful.hs:57:12:
    Constructor `PatBind' should have 4 arguments, but has been given 5
    In the pattern:
      PatBind locat
              (PVar fname)
              Nothing
              (UnGuardedRhs (Lambda _ pats rhs))
              (BDecls [])
    In an equation for `optimizeD':
        optimizeD
          (PatBind locat
                   (PVar fname)
                   Nothing
                   (UnGuardedRhs (Lambda _ pats rhs))
                   (BDecls []))
          = FunBind
              [Match locat fname pats Nothing (UnGuardedRhs rhs) (BDecls [])]

src/Lambdabot/Plugin/Pointful.hs:177:22:
    Constructor `PatBind' should have 4 arguments, but has been given 5
    In the pattern:
      PatBind _ (PVar fname) _ (UnGuardedRhs body) (BDecls [])
    In an equation for `declToTuple':
        declToTuple
          (PatBind _ (PVar fname) _ (UnGuardedRhs body) (BDecls []))
          = (UnQual fname, Paren body)
    In an equation for `combinators':
        combinators
          = M.fromList $ map declToTuple defs
          where
              defs
                = case parseModule combinatorModule of {
                    ParseOk (Hs.Module _ _ _ _ _ _ d) -> d
                    f@(ParseFailed _ _) -> error ("Combinator loading: " ++ show f) }
              declToTuple
                (PatBind _ (PVar fname) _ (UnGuardedRhs body) (BDecls []))
                = (UnQual fname, Paren body)
              declToTuple _
                = error "Pointful Plugin error: can't convert declaration to tuple"
Failed to install lambdabot-4.3.0.1
cabal: Error: some packages failed to install:
lambdabot-4.3.0.1 failed during the building phase. The exception was:
ExitFailure 1
dchaudh@dchaudhUbuntu:~$ 

1 个答案:

答案 0 :(得分:1)

您应该通过运行

haskell-src-exts更新为最新版本
cabal update
cabal install haskell-src-exts