我正在尝试安装最新版本的Heist,但是作为依赖项的errors-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
答案 0 :(得分:2)
我在最新的错误中修复了这个错误,这是1.4.1(1.4.0错误,我不导出EitherT和MaybeT类型)。这次我已经在这两个依赖项上添加了上限,以防止它在将来发生。