2013-02-09 1 views
1

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

Версия 1.3.1 устарела, возможно, вам следует «обновить каббал» и попробуйте установить 1.4.1. Если это был отступ, выбранный cabal, то используйте ошибки --constraint == 1.4.1 ' –

+0

Почему новый Heist (0.11.0) зависит от ошибок-1.3. *? – dan

+1

Git repo для Heist на самом деле исправляет эту проблему. Спасибо за помощь. – dan

ответ

2

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

+0

Большое спасибо! – dan

+0

Добро пожаловать! –