packages feed

monad-control 0.3.3.0 → 0.3.3.1

raw patch · 2 files changed

+3/−10 lines, 2 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 MonadBaseControl b m => MonadBaseControl b (ExceptT e m)
+ Control.Monad.Trans.Control: instance MonadTransControl (ExceptT e)

Files

Control/Monad/Trans/Control.hs view
@@ -81,10 +81,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 )@@ -208,14 +205,12 @@     {-# INLINE liftWith #-}     {-# INLINE restoreT #-} -#if MIN_VERSION_transformers(0,4,0) instance MonadTransControl (ExceptT e) where     newtype StT (ExceptT e) a = StExcept {unStExcept :: Either e a}     liftWith f = ExceptT $ liftM return $ f $ liftM StExcept . runExceptT     restoreT = ExceptT . liftM unStExcept     {-# INLINE liftWith #-}     {-# INLINE restoreT #-}-#endif  instance MonadTransControl ListT where     newtype StT ListT a = StList {unStList :: [a]}@@ -434,10 +429,7 @@ TRANS(ReaderT r,       StMReader, unStMReader) TRANS(Strict.StateT s, StMStateS, unStMStateS) TRANS(       StateT s, StMState,  unStMState)--#if MIN_VERSION_transformers(0,4,0) TRANS(ExceptT e,       StMExcept, unStMExcept)-#endif  TRANS_CTX(Error e,         ErrorT e,   StMError,   unStMError) TRANS_CTX(Monoid w, Strict.WriterT w,  StMWriterS, unStMWriterS)
monad-control.cabal view
@@ -1,5 +1,5 @@ Name:                monad-control-Version:             0.3.3.0+Version:             0.3.3.1 Synopsis:            Lift control operations, like exception catching, through monad transformers License:             BSD3 License-file:        LICENSE@@ -53,6 +53,7 @@    Build-depends: base                 >= 3     && < 5                , transformers         >= 0.2   && < 0.5-               , transformers-base    >= 0.4.2 && < 0.5+               , transformers-base    >= 0.4.4 && < 0.5+               , transformers-compat  >= 0.3   && < 0.5    Ghc-options: -Wall