packages feed

monadLib 3.7.2 → 3.7.3

raw patch · 2 files changed

+8/−1 lines, 2 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

+ MonadLib.Monads: instance [safe] Applicative (Cont i)
+ MonadLib.Monads: instance [safe] Applicative (Exception i)
+ MonadLib.Monads: instance [safe] Applicative (Reader i)
+ MonadLib.Monads: instance [safe] Applicative (State i)
+ MonadLib.Monads: instance [safe] Monoid i => Applicative (Writer i)

Files

monadLib.cabal view
@@ -1,5 +1,5 @@ Name:           monadLib-Version:        3.7.2+Version:        3.7.3 License:        BSD3 License-file:   LICENSE Author:         Iavor S. Diatchki
src/MonadLib/Monads.hs view
@@ -15,6 +15,7 @@ ) where import MonadLib import MonadLib.Derive+import Control.Applicative import Control.Monad.Fix import Data.Monoid @@ -72,6 +73,12 @@ instance               Functor (State     i) where fmap = derive_fmap iso_S instance               Functor (Exception i) where fmap = derive_fmap iso_X instance               Functor (Cont      i) where fmap = derive_fmap iso_C++instance               Applicative (Reader    i) where pure = return; (<*>) = ap+instance (Monoid i) => Applicative (Writer    i) where pure = return; (<*>) = ap+instance               Applicative (State     i) where pure = return; (<*>) = ap+instance               Applicative (Exception i) where pure = return; (<*>) = ap+instance               Applicative (Cont      i) where pure = return; (<*>) = ap  instance               MonadFix (Reader    i) where mfix = derive_mfix iso_R instance (Monoid i) => MonadFix (Writer    i) where mfix = derive_mfix iso_W