packages feed

monad-abort-fd 0.2 → 0.3

raw patch · 2 files changed

+5/−5 lines, 2 filesdep ~transformers-abortdep ~transformers-basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: transformers-abort, transformers-base

API changes (from Hackage documentation)

- Control.Monad.Exception: evaluate :: MonadBase μ IO => α -> μ α
+ Control.Monad.Exception: evaluate :: MonadBase IO μ => α -> μ α
- Control.Monad.Exception: throwIO :: (MonadBase μ IO, Exception e) => e -> μ α
+ Control.Monad.Exception: throwIO :: (MonadBase IO μ, Exception e) => e -> μ α

Files

monad-abort-fd.cabal view
@@ -1,5 +1,5 @@ Name: monad-abort-fd-Version: 0.2+Version: 0.3 Category: Control Stability: experimental Synopsis: A better error monad transformer@@ -27,8 +27,8 @@   Build-Depends:     base               >= 4 && < 5,     transformers       >= 0.2,-    transformers-base  >= 0.1,-    transformers-abort >= 0.2,+    transformers-base  >= 0.3,+    transformers-abort >= 0.3,     mtl                >= 2.0,     monad-control      >= 0.2.0.2,     data-default       >= 0.2
src/Control/Monad/Exception.hs view
@@ -76,13 +76,13 @@ exception ∷ Exception e ⇒ e → α exception = E.throw -evaluate ∷ MonadBase μ IO ⇒ α → μ α+evaluate ∷ MonadBase IO μ ⇒ α → μ α evaluate = liftBase . E.evaluate  throw ∷ (MonadAbort SomeException μ, Exception e) ⇒ e → μ α throw = abort . toException -throwIO ∷ (MonadBase μ IO, Exception e) ⇒ e → μ α+throwIO ∷ (MonadBase IO μ, Exception e) ⇒ e → μ α throwIO = liftBase . E.throwIO  catch ∷ (MonadRecover SomeException μ, Exception e) ⇒ μ α → (e → μ α) → μ α