1

我正在尝试安装 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:~$ 
4

1 回答 1

1

您应该haskell-src-exts通过运行将您的更新到最新版本

cabal update
cabal install haskell-src-exts
于 2014-10-22T06:52:50.163 回答