errors 1.0.0 → 1.1.0
raw patch · 2 files changed
+7/−2 lines, 2 filesdep +eitherdep −EitherTPVP ok
version bump matches the API change (PVP)
Dependencies added: either
Dependencies removed: EitherT
API changes (from Hackage documentation)
+ Data.EitherR: left :: Monad m => e -> EitherT e m r
Files
- Data/EitherR.hs +5/−0
- errors.cabal +2/−2
Data/EitherR.hs view
@@ -40,6 +40,7 @@ right, succeedT, -- ** Conversions to the EitherT monad+ left, throwT, catchT, handleT,@@ -124,6 +125,10 @@ -- | 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 = throwT -- | '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.0.0+Version: 1.1.0 Cabal-Version: >=1.14.0 Build-Type: Simple License: BSD3@@ -23,7 +23,7 @@ Location: https://github.com/Gabriel439/Haskell-Errors-Library Library- Build-Depends: base >= 4 && < 5, EitherT, safe, transformers+ Build-Depends: base >= 4 && < 5, either, safe, transformers Exposed-Modules: Control.Error, Control.Error.Script,