构建geordi的haskell部分并遇到奇怪的错误

时间:2014-10-12 21:03:36

标签: haskell cabal cabal-install

我正在尝试构建项目geordi的haskell部分,我遇到了一些奇怪的错误

[dtscode@dtscode-manjaro geordi-master]$ cabal install
Resolving dependencies...
Configuring geordi-0...
Building geordi-0...
Failed to install geordi-0
Build log ( /home/dtscode/.cabal/logs/geordi-0.log ):
Configuring geordi-0...
Building geordi-0...
Preprocessing executable 'geordi-mkrt' for geordi-0...
Preprocessing executable 'geordi-local' for geordi-0...
[19 of 24] Compiling ErrorFilters     ( src/ErrorFilters.hs, dist/build/geordi-local/geordi-local-tmp/ErrorFilters.o )

src/ErrorFilters.hs:75:10:
    Illegal instance declaration for ‘Parser String st String’
      The liberal coverage condition fails in class ‘Parser’
        for functional dependency: ‘p -> st’
      Reason: lhs type ‘String’ does not determine rhs type ‘st’
    In the instance declaration for ‘Parser String st String’

src/ErrorFilters.hs:76:10:
    Illegal instance declaration for ‘Parser [String] st String’
      The liberal coverage condition fails in class ‘Parser’
        for functional dependency: ‘p -> st’
      Reason: lhs type ‘[String]’ does not determine rhs type ‘st’
    In the instance declaration for ‘Parser [String] st String’

src/ErrorFilters.hs:77:10:
    Illegal instance declaration for ‘Parser Char st Char’
      The liberal coverage condition fails in class ‘Parser’
        for functional dependency: ‘p -> st’
      Reason: lhs type ‘Char’ does not determine rhs type ‘st’
    In the instance declaration for ‘Parser Char st Char’
cabal: Error: some packages failed to install:
geordi-0 failed during the building phase. The exception was:
ExitFailure 1
[dtscode@dtscode-manjaro geordi-master]$

不幸的是,我并不熟悉haskell,除了我需要安装库之外,我无法做出错误的正面或反面。

0 个答案:

没有答案