mmorph 1.0.7 → 1.0.8
raw patch · 2 files changed
+2/−6 lines, 2 filesdep ~base
Dependency ranges changed: base
Files
- mmorph.cabal +1/−1
- src/Control/Monad/Morph.hs +1/−5
mmorph.cabal view
@@ -1,5 +1,5 @@ Name: mmorph-Version: 1.0.7+Version: 1.0.8 Cabal-Version: >= 1.8.0.2 Build-Type: Simple License: BSD3
src/Control/Monad/Morph.hs view
@@ -107,11 +107,7 @@ {-| Lift a monad morphism from @m@ to @n@ into a monad morphism from @(t m)@ to @(t n)@ -}-#if MIN_VERSION_base(4,8,0)- hoist :: Functor m => (forall a . m a -> n a) -> t m b -> t n b-#else- hoist :: Monad m => (forall a . m a -> n a) -> t m b -> t n b-#endif+ hoist :: (Monad m) => (forall a . m a -> n a) -> t m b -> t n b instance MFunctor (E.ErrorT e) where hoist nat m = E.ErrorT (nat (E.runErrorT m))