我试图安装最新版本的海斯特,但是errors-1.3.1
这是一个依赖项无法安装。有关如何克服这个问题的任何建议?cabal安装错误-1.3.1失败
$ cabal install errors-1.3.1
Resolving dependencies...
Configuring errors-1.3.1...
Building errors-1.3.1...
Preprocessing library errors-1.3.1...
[1 of 5] Compiling Data.EitherR (Data/EitherR.hs, dist/build/Data/EitherR.o)
[2 of 5] Compiling Control.Error.Util (Control/Error/Util.hs, dist/build/Control/Error/Util.o)
Control/Error/Util.hs:74:10:
Could not deduce (Monad m) arising from a use of `fmap'
from the context (Functor m)
bound by the type signature for
fmapRT :: Functor m => (a -> b) -> EitherT l m a -> EitherT l m b
at Control/Error/Util.hs:74:1-13
Possible fix:
add (Monad m) to the context of
the type signature for
fmapRT :: Functor m => (a -> b) -> EitherT l m a -> EitherT l m b
In the expression: fmap
In an equation for `fmapRT': fmapRT = fmap
cabal: Error: some packages failed to install:
errors-1.3.1 failed during the building phase. The exception was:
ExitFailure 1
版本1.3.1是旧的,也许你应该'cabal update'并尝试安装1.4.1。如果这是一个由cabal选择的dep,那么使用--constraint'errors == 1.4.1' – 2013-02-09 23:51:59
为什么最新的Heist(0.11.0)依赖于错误-1.3。*? – dan 2013-02-10 00:23:57
Heist的git回购实际上纠正了这个问题。感谢您的帮助。 – dan 2013-02-10 00:25:22