packages feed

attempt 0.2.2 → 0.3.0

raw patch · 2 files changed

+4/−5 lines, 2 filesdep −sybdep ~failurePVP ok

version bump matches the API change (PVP)

Dependencies removed: syb

Dependency ranges changed: failure

API changes (from Hackage documentation)

- Data.Attempt: instance (Exception e) => Failure e Attempt
- Data.Attempt: instance (Exception e) => WrapFailure e Attempt
- Data.Attempt: instance (Show v) => Show (Attempt v)
+ Data.Attempt: instance Exception e => Failure e Attempt
+ Data.Attempt: instance Exception e => WrapFailure e Attempt
+ Data.Attempt: instance Show v => Show (Attempt v)
- Data.Attempt: attempt :: (forall e. (Exception e) => e -> b) -> (a -> b) -> Attempt a -> b
+ Data.Attempt: attempt :: (forall e. Exception e => e -> b) -> (a -> b) -> Attempt a -> b
- Data.Attempt: fa :: (FromAttempt a) => Attempt v -> a v
+ Data.Attempt: fa :: FromAttempt a => Attempt v -> a v
- Data.Attempt: fromAttempt :: (FromAttempt a) => Attempt v -> a v
+ Data.Attempt: fromAttempt :: FromAttempt a => Attempt v -> a v
- Data.Attempt: makeHandler :: [AttemptHandler v] -> v -> (forall e. (Exception e) => e -> v)
+ Data.Attempt: makeHandler :: [AttemptHandler v] -> v -> (forall e. Exception e => e -> v)

Files

Data/Attempt.hs view
@@ -47,7 +47,7 @@ import qualified Control.Exception as E import Control.Monad (ap) import Control.Applicative-import Data.Generics+import Data.Data import Data.Either (lefts) import Control.Failure import GHC.Show (appPrec, appPrec1)@@ -188,7 +188,7 @@   f a (l, r) = (E.toException a:l, r)   s a (l, r) = (l, a:r) --- | Catches runtime (ie, IO) exceptions inserts them into an 'Attempt'.+-- | Catches runtime (ie, IO) exceptions and inserts them into an 'Attempt'. -- -- Like 'handle', the first argument to this function must explicitly state the -- type of its input.
attempt.cabal view
@@ -1,5 +1,5 @@ name:            attempt-version:         0.2.2+version:         0.3.0 license:         BSD3 license-file:    LICENSE author:          Michael Snoyman, Nicolas Pouillard@@ -14,7 +14,6 @@  library     build-depends:   base >= 4 && < 5,-                     syb,-                     failure >= 0.0.0 && < 0.1+                     failure >= 0.1.0 && < 0.2     exposed-modules: Data.Attempt     ghc-options:     -Wall