首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Haskell: Lambdabot安装无法完成

Haskell: Lambdabot安装无法完成
EN

Stack Overflow用户
提问于 2014-10-22 05:42:11
回答 1查看 229关注 0票数 1

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

对如何解决有什么建议吗?有没有人遇到过类似的问题?

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

代码语言:javascript
复制
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:~$ 
EN

回答 1

Stack Overflow用户

发布于 2014-10-22 14:52:50

您应该通过运行以下命令将haskell-src-exts更新到最新版本

代码语言:javascript
复制
cabal update
cabal install haskell-src-exts
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26496873

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档