Ошибка установки Cabal-1.3.1 не удается

Я пытаюсь установить новейшую версию 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

1 ответ

Решение

Я исправил это в последних ошибках, а именно в 1.4.1 (1.4.0 содержит ошибку, когда я не экспортирую типы EitherT и MaybeT). На этот раз я добавил верхние границы для любой зависимости, чтобы предотвратить ее появление в будущем.

Другие вопросы по тегам