2014-10-21 2 views
1

lambdabot을 설치하려고합니다. 설치가 74/100 단계에서 종료되고 아래 오류가 표시됩니다.하스켈 : 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 최신 버전으로 업데이트해야합니다
관련 문제