Error installing on Ubuntu 16.04: No instance for (MonadBase IO m)
Closed this issue · 6 comments
krlmlr commented
New to Haskell. I'm seeing:
$ cabal install monad-logger --constraint 'monad-logger < 0.3.28.2'
Resolving dependencies...
Downloading monad-logger-0.3.28.1...
Configuring monad-logger-0.3.28.1...
Building monad-logger-0.3.28.1...
Installed monad-logger-0.3.28.1
$ cabal install monad-logger --constraint 'monad-logger < 0.3.28.3'
Resolving dependencies...
Configuring monad-logger-0.3.28.2...
Building monad-logger-0.3.28.2...
Failed to install monad-logger-0.3.28.2
Build log ( /home/mvers/.cabal/logs/monad-logger-0.3.28.2.log ):
Configuring monad-logger-0.3.28.2...
Building monad-logger-0.3.28.2...
Preprocessing library monad-logger-0.3.28.2...
[1 of 1] Compiling Control.Monad.Logger ( Control/Monad/Logger.hs, dist/build/Control/Monad/Logger.o )
Control/Monad/Logger.hs:362:99:
No instance for (MonadBase IO m)
arising from the 'deriving' clause of a data type declaration
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (MonadResource (NoLoggingT m))
cabal: Error: some packages failed to install:
monad-logger-0.3.28.2 failed during the building phase. The exception was:
ExitFailure 1
Do you need more input?
phadej commented
This is reproducible with GHC-7.10.3 and older
phadej commented
I suspect this is due changes in resourcet-1.2.0
mrkkrp commented
Apparently this will force everybody to drop support for GHC 7.10 and older now. E.g. I have: https://travis-ci.org/mrkkrp/slug/builds/357268657.
phadej commented
As a Hackage Trustee I'm tempted to make a revision which simply bump base
lower bound for that version. The patch fixing issue seems to be relatively simple, hopefully it will be merged and released soon.
https://hackage.haskell.org/package/monad-logger-0.3.28.2/revisions/
krlmlr commented
Sorry, can't recollect.