首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Haskell fay安装失败

Haskell fay安装失败
EN

Stack Overflow用户
提问于 2012-12-23 18:41:48
回答 1查看 305关注 0票数 2

我正在尝试安装fay,但是src编译失败

代码语言:javascript
复制
$ cabal install fay
...
Preprocessing executable 'fay' for fay-0.10.1.0...
[ 1 of 14] Compiling Data.List.Extra  ( src/Data/List/Extra.hs, dist/build/fay/fay- tmp/Data/List/Extra.o )
[ 2 of 14] Compiling System.Process.Extra ( src/System/Process/Extra.hs, dist/build/fay/fay-tmp/System/Process/Extra.o )    
...
[13 of 14] Compiling Language.Fay     ( src/Language/Fay.hs, dist/build/fay/fay-tmp/Language/Fay.o )
[14 of 14] Compiling Main             ( src/Main.hs, dist/build/fay/fay-tmp/Main.o )

src/Main.hs:89:55:
Couldn't match expected type `Either ParseError (Maybe String)'
            with actual type `Maybe b0'
Expected type: b0 -> Either ParseError (Maybe String)
  Actual type: b0 -> Maybe b0
In the first argument of `(.)', namely `Just'
In the first argument of `reader', namely `(Just . Just)'

src/Main.hs:96:35:
Couldn't match expected type `Either ParseError a0'
            with actual type `Maybe b0'
Expected type: b0 -> Either ParseError a0
  Actual type: b0 -> Maybe b0
In the first argument of `(.)', namely `Just'
In the first argument of `reader', namely
  `(Just . wordsBy (== ','))'
Failed to install fay-0.10.1.0
cabal: Error: some packages failed to install:
fay-0.10.1.0 failed during the building phase. The exception was:
ExitFailure 1

我不知道这是我的错误还是包裹问题。

我使用的是: arch linux,ghc-7.4.2,cabal-1.16.0.3

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-12-23 19:08:20

这肯定是一个包的问题,因为依赖关系没有被严格地指定。如果包遵循Package Versioning Policy,如果您可以满足依赖关系,则应该构建包。

看看fay包的描述,我注意到几乎没有任何依赖项有下限或上界。所以基本上,你必须进行实验。

查看代码,我看到错误中提到的readerOptions.Applicative.Builder.reader。此函数已将类型签名从0.4.3更改为0.5.0,因此尝试通过将--constraint "optparse-applicative < 0.5"传递给cabal install来降低optparse-applicative的级别。

票数 7
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14010302

复制
相关文章

相似问题

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