MonadCatchIO-mtl 0.3.0.0 → 0.3.0.1
raw patch · 2 files changed
+2/−2 lines, 2 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Control.Monad.CatchIO: instance (MonadCatchIO m) => MonadCatchIO (ReaderT r m)
- Control.Monad.CatchIO: instance (MonadCatchIO m) => MonadCatchIO (StateT s m)
+ Control.Monad.CatchIO: instance MonadCatchIO m => MonadCatchIO (ReaderT r m)
+ Control.Monad.CatchIO: instance MonadCatchIO m => MonadCatchIO (StateT s m)
- Control.Monad.CatchIO: block :: (MonadCatchIO m) => m a -> m a
+ Control.Monad.CatchIO: block :: MonadCatchIO m => m a -> m a
- Control.Monad.CatchIO: bracket :: (MonadCatchIO m) => m a -> (a -> m b) -> (a -> m c) -> m c
+ Control.Monad.CatchIO: bracket :: MonadCatchIO m => m a -> (a -> m b) -> (a -> m c) -> m c
- Control.Monad.CatchIO: bracketOnError :: (MonadCatchIO m) => m a -> (a -> m b) -> (a -> m c) -> m c
+ Control.Monad.CatchIO: bracketOnError :: MonadCatchIO m => m a -> (a -> m b) -> (a -> m c) -> m c
- Control.Monad.CatchIO: bracket_ :: (MonadCatchIO m) => m a -> m b -> m c -> m c
+ Control.Monad.CatchIO: bracket_ :: MonadCatchIO m => m a -> m b -> m c -> m c
- Control.Monad.CatchIO: catches :: (MonadCatchIO m) => m a -> [Handler m a] -> m a
+ Control.Monad.CatchIO: catches :: MonadCatchIO m => m a -> [Handler m a] -> m a
- Control.Monad.CatchIO: class (MonadIO m) => MonadCatchIO m
+ Control.Monad.CatchIO: class MonadIO m => MonadCatchIO m
- Control.Monad.CatchIO: finally :: (MonadCatchIO m) => m a -> m b -> m a
+ Control.Monad.CatchIO: finally :: MonadCatchIO m => m a -> m b -> m a
- Control.Monad.CatchIO: fromException :: (Exception e) => SomeException -> Maybe e
+ Control.Monad.CatchIO: fromException :: Exception e => SomeException -> Maybe e
- Control.Monad.CatchIO: onException :: (MonadCatchIO m) => m a -> m b -> m a
+ Control.Monad.CatchIO: onException :: MonadCatchIO m => m a -> m b -> m a
- Control.Monad.CatchIO: toException :: (Exception e) => e -> SomeException
+ Control.Monad.CatchIO: toException :: Exception e => e -> SomeException
- Control.Monad.CatchIO: unblock :: (MonadCatchIO m) => m a -> m a
+ Control.Monad.CatchIO: unblock :: MonadCatchIO m => m a -> m a
Files
- Control/Monad/CatchIO.hs +1/−1
- MonadCatchIO-mtl.cabal +1/−1
Control/Monad/CatchIO.hs view
@@ -143,7 +143,7 @@ -- | Generalized version of 'E.onException' onException :: MonadCatchIO m => m a -> m b -> m a-onException a onEx = a `catch` (\(e::E.SomeException) -> onEx >> throw e)+onException a onEx = a `catch` (\e -> onEx >> throw (e::E.SomeException)) _void :: Monad m => m a -> m () _void a = a >> return ()
MonadCatchIO-mtl.cabal view
@@ -1,5 +1,5 @@ name: MonadCatchIO-mtl-version: 0.3.0.0+version: 0.3.0.1 description: Provides a monad-transformer version of the @Control.Exception.catch@ function. For this, it defines the @MonadCatchIO@ class, a subset of