packages feed

errors 1.1.1 → 1.2.0

raw patch · 2 files changed

+3/−13 lines, 2 filesdep ~eitherPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: either

API changes (from Hackage documentation)

- Data.EitherR: left :: Monad m => e -> EitherT e m r
- Data.EitherR: right :: Monad m => r -> EitherRT r m e

Files

Data/EitherR.hs view
@@ -37,10 +37,8 @@     -- * EitherRT     EitherRT(..),     -- ** Operations in the EitherRT monad-    right,     succeedT,     -- ** Conversions to the EitherT monad-    left,     throwT,     catchT,     handleT,@@ -113,22 +111,14 @@         x <- runEitherT $ runEitherRT m         runEitherT $ runEitherRT $ case x of             Left  e -> f e-            Right r -> right r+            Right r -> succeedT r  instance MonadTrans (EitherRT r) where     lift = EitherRT . EitherT . liftM Left --- | The dual to 'left' and synonymous with 'succeedT'-right :: (Monad m) => r -> EitherRT r m e-right = EitherRT . return- -- | Complete error handling, returning a result succeedT :: (Monad m) => r -> EitherRT r m e-succeedT = right---- | Synonym for 'throwT'-left :: (Monad m) => e -> EitherT e m r-left = EitherT . return . Left+succeedT = EitherRT . return  -- | 'throwT' in the error monad corresponds to 'return' in the success monad throwT :: (Monad m) => e -> EitherT e m r
errors.cabal view
@@ -1,5 +1,5 @@ Name: errors-Version: 1.1.1+Version: 1.2.0 Cabal-Version: >=1.14.0 Build-Type: Simple License: BSD3