2014-10-21 87 views
1

我想安裝lambdabot。安裝始終終止在步驟74/100並給我下面的錯誤。Haskell:Lambdabot安裝無法完成

有關如何解決的任何建議?有沒有人遇到類似的問題?

如果相關,我試圖用下面的命令安裝(以便將它指向它早先抱怨的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 
        [email protected](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 
[email protected]:~$ 

回答

1

你應該通過運行

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