packages feed

monad-journal 0.7.2 → 0.8.0

raw patch · 3 files changed

+7/−6 lines, 3 filesdep ~eitherPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: either

API changes (from Hackage documentation)

- Control.Monad.Journal.Class: instance (GHC.Base.Monad m, GHC.Base.Monoid w, Control.Monad.Journal.Class.MonadJournal w m) => Control.Monad.Journal.Class.MonadJournal w (Control.Monad.Trans.Either.EitherT e m)
+ Control.Monad.Journal.Class: instance (GHC.Base.Monad m, GHC.Base.Monoid w, Control.Monad.Journal.Class.MonadJournal w m) => Control.Monad.Journal.Class.MonadJournal w (Control.Monad.Trans.Except.ExceptT e m)

Files

CHANGELOG.md view
@@ -1,8 +1,9 @@ # CHANGELOG -### 0.7.2+## 0.8.0 -- Added support for transformers-0.5.+- Added support for either-4.5. This support breaks compatibility as we don’t have `EitherT`+  anymore. If you used it, please fall back to `ExceptT`, which has the same interface.  ### 0.7.1 
Control/Monad/Journal/Class.hs view
@@ -30,7 +30,7 @@  import Control.Monad ( Monad ) import Control.Monad.Trans ( MonadIO, MonadTrans, lift, liftIO )-import Control.Monad.Trans.Either ( EitherT )+import Control.Monad.Trans.Except ( ExceptT ) import Control.Monad.Trans.Identity ( IdentityT ) import Control.Monad.Trans.List ( ListT ) import Control.Monad.Trans.Maybe ( MaybeT )@@ -98,7 +98,7 @@   history    = lift history   clear      = lift clear -instance  (Monad m, Monoid w, MonadJournal w m) => MonadJournal w (EitherT e m) where+instance  (Monad m, Monoid w, MonadJournal w m) => MonadJournal w (ExceptT e m) where   journal !w = lift (journal w)   history    = lift history   clear      = lift clear
monad-journal.cabal view
@@ -1,7 +1,7 @@ name:                monad-journal license:             BSD3 license-file:        LICENSE-version:             0.7.2+version:             0.8.0 synopsis:            Pure logger typeclass and monad transformer description:         This package provides a typeclass for logging in                      pure code, or more generally, in any kind of@@ -43,7 +43,7 @@   build-depends:           base              >= 4.5   && < 5.0                          , mtl               >= 2.1   && < 2.3                          , transformers      >= 0.3   && < 0.6-                         , either            >= 4.1   && < 4.5+                         , either            >= 4.1   && < 4.6                          , monad-control     >= 0.3   && < 1.1                          , transformers-base >= 0.4   && < 0.5