packages feed

monad-control 1.0.0.2 → 1.0.0.3

raw patch · 3 files changed

+9/−10 lines, 3 filesdep +transformers-compatdep ~transformers-basePVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

Dependencies added: transformers-compat

Dependency ranges changed: transformers-base

API changes (from Hackage documentation)

+ Control.Monad.Trans.Control: instance [safe] MonadBaseControl b m => MonadBaseControl b (ExceptT e m)
+ Control.Monad.Trans.Control: instance [safe] MonadTransControl (ExceptT e)

Files

CHANGELOG view
@@ -1,3 +1,9 @@+1.0.0.3++* Unconditionally add ExceptT instances using transformers-compat.+  Courtesy of Adam Bergmark.++ 1.0.0.2  * Add a base >= 4.5 constraint because monad-control only builds on GHC >= 7.4.
Control/Monad/Trans/Control.hs view
@@ -80,10 +80,7 @@ import Control.Monad.Trans.State    ( StateT   (StateT),    runStateT ) import Control.Monad.Trans.Writer   ( WriterT  (WriterT),   runWriterT ) import Control.Monad.Trans.RWS      ( RWST     (RWST),      runRWST )--#if MIN_VERSION_transformers(0,4,0) import Control.Monad.Trans.Except   ( ExceptT  (ExceptT),   runExceptT )-#endif  import qualified Control.Monad.Trans.RWS.Strict    as Strict ( RWST   (RWST),    runRWST ) import qualified Control.Monad.Trans.State.Strict  as Strict ( StateT (StateT),  runStateT )@@ -213,14 +210,12 @@     {-# INLINABLE liftWith #-}     {-# INLINABLE restoreT #-} -#if MIN_VERSION_transformers(0,4,0) instance MonadTransControl (ExceptT e) where     type StT (ExceptT e) a = Either e a     liftWith f = ExceptT $ liftM return $ f $ runExceptT     restoreT = ExceptT     {-# INLINABLE liftWith #-}     {-# INLINABLE restoreT #-}-#endif  instance MonadTransControl ListT where     type StT ListT a = [a]@@ -439,10 +434,7 @@ TRANS(ReaderT r) TRANS(Strict.StateT s) TRANS(       StateT s)--#if MIN_VERSION_transformers(0,4,0) TRANS(ExceptT e)-#endif  TRANS_CTX(Error e,         ErrorT e) TRANS_CTX(Monoid w, Strict.WriterT w)
monad-control.cabal view
@@ -1,5 +1,5 @@ Name:                monad-control-Version:             1.0.0.2+Version:             1.0.0.3 Synopsis:            Lift control operations, like exception catching, through monad transformers License:             BSD3 License-file:        LICENSE@@ -42,7 +42,8 @@    Build-depends: base                 >= 4.5   && < 5                , stm                  >= 2.3   && < 3-               , transformers-base    >= 0.4.3 && < 0.5                , transformers         >= 0.2   && < 0.5+               , transformers-compat  >= 0.3   && < 0.4+               , transformers-base    >= 0.4.4 && < 0.5    Ghc-options: -Wall