Depend on mtl >= 2 since it now has Applicative instance for ReaderT, ErrorT, etc.
This commit is contained in:
parent
828a53a4a1
commit
630b558b93
2 changed files with 3 additions and 10 deletions
|
@ -9,14 +9,7 @@ import Control.Arrow ((+++))
|
||||||
import Control.Monad.Reader
|
import Control.Monad.Reader
|
||||||
import Control.Monad.Error
|
import Control.Monad.Error
|
||||||
|
|
||||||
instance (Monad m) => Applicative (ReaderT r m) where
|
-- | MonadIO with extra Applicative and Functor superclasses
|
||||||
pure = return
|
|
||||||
(<*>) = ap
|
|
||||||
|
|
||||||
instance (Monad m, Error e) => Applicative (ErrorT e m) where
|
|
||||||
pure = return
|
|
||||||
(<*>) = ap
|
|
||||||
|
|
||||||
class (MonadIO m, Applicative m, Functor m) => MonadIO' m
|
class (MonadIO m, Applicative m, Functor m) => MonadIO' m
|
||||||
instance (MonadIO m, Applicative m, Functor m) => MonadIO' m
|
instance (MonadIO m, Applicative m, Functor m) => MonadIO' m
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: mongoDB
|
name: mongoDB
|
||||||
version: 0.8
|
version: 0.8.1
|
||||||
build-type: Simple
|
build-type: Simple
|
||||||
license: OtherLicense
|
license: OtherLicense
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
|
@ -12,7 +12,7 @@ build-depends:
|
||||||
bson -any,
|
bson -any,
|
||||||
bytestring -any,
|
bytestring -any,
|
||||||
containers -any,
|
containers -any,
|
||||||
mtl -any,
|
mtl >= 2,
|
||||||
nano-md5 -any,
|
nano-md5 -any,
|
||||||
network -any,
|
network -any,
|
||||||
parsec -any,
|
parsec -any,
|
||||||
|
|
Loading…
Reference in a new issue