commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2019-12-27 13:56:56 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new.6675 (New) Package is "ghc-retry" Fri Dec 27 13:56:56 2019 rev:18 rq:759494 version:0.8.1.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2019-10-18 14:34:55.424006520 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new.6675/ghc-retry.changes 2019-12-27 13:57:02.292764696 +0100 @@ -1,0 +2,12 @@ +Fri Nov 8 16:14:36 UTC 2019 - Peter Simons + +- Drop obsolete group attributes. + +--- +Sat Oct 12 02:02:04 UTC 2019 - psim...@suse.com + +- Update retry to version 0.8.1.0. + 0.8.1.0 + * Add `retryingDynamic` and `recoveringDynamic`. [PR 65](https://github.com/Soostone/retry/pull/65) + +--- Old: retry-0.8.0.2.tar.gz New: retry-0.8.1.0.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.Q4VWAN/_old 2019-12-27 13:57:02.828764955 +0100 +++ /var/tmp/diff_new_pack.Q4VWAN/_new 2019-12-27 13:57:02.828764955 +0100 @@ -19,11 +19,10 @@ %global pkg_name retry %bcond_with tests Name: ghc-%{pkg_name} -Version:0.8.0.2 +Version:0.8.1.0 Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause -Group: Development/Libraries/Haskell URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel @@ -53,7 +52,6 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} ++ retry-0.8.0.2.tar.gz -> retry-0.8.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.2/changelog.md new/retry-0.8.1.0/changelog.md --- old/retry-0.8.0.2/changelog.md 2019-09-27 22:24:28.0 +0200 +++ new/retry-0.8.1.0/changelog.md 2019-10-11 17:33:21.0 +0200 @@ -1,3 +1,6 @@ +0.8.1.0 +* Add `retryingDynamic` and `recoveringDynamic`. [PR 65](https://github.com/Soostone/retry/pull/65) + 0.8.0.2 * Update docs for default retry policy. [PR 64](https://github.com/Soostone/retry/pull/64) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.2/retry.cabal new/retry-0.8.1.0/retry.cabal --- old/retry-0.8.0.2/retry.cabal 2019-09-27 22:23:31.0 +0200 +++ new/retry-0.8.1.0/retry.cabal 2019-10-11 17:32:32.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.8.0.2 +version: 0.8.1.0 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.2/src/Control/Retry.hs new/retry-0.8.1.0/src/Control/Retry.hs --- old/retry-0.8.0.2/src/Control/Retry.hs 2019-09-27 17:56:03.0 +0200 +++ new/retry-0.8.1.0/src/Control/Retry.hs 2019-10-11 17:31:38.0 +0200 @@ -37,6 +37,8 @@ , retryPolicy , retryPolicyDefault , natTransformRetryPolicy +, RetryAction (..) +, toRetryAction , RetryStatus (..) , defaultRetryStatus , applyPolicy @@ -50,7 +52,9 @@ -- * Applying Retry Policies , retrying +, retryingDynamic , recovering +, recoveringDynamic , stepping , recoverAll , skipAsyncExceptions @@ -192,6 +196,30 @@ natTransformRetryPolicy f (RetryPolicyM p) = RetryPolicyM $ \stat -> f (p stat) +-- | Modify the delay of a RetryPolicy. +-- Does not change whether or not a retry is performed. +modifyRetryPolicyDelay :: Functor m => (Int -> Int) -> RetryPolicyM m -> RetryPolicyM m +modifyRetryPolicyDelay f (RetryPolicyM p) = RetryPolicyM $ \stat -> fmap f <$> p stat + + +--- +-- | How to handle a failed action. +data RetryAction += DontRetry +-- ^ Don't retry (regardless of what the 'RetryPolicy' says). +| ConsultPolicy +-- ^ Retry if the 'RetryPolicy' says so, with the delay specified by the policy. +
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2019-10-18 14:34:53 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new.2352 (New) Package is "ghc-retry" Fri Oct 18 14:34:53 2019 rev:17 rq:737216 version:0.8.0.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2019-05-12 11:36:21.978391165 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new.2352/ghc-retry.changes 2019-10-18 14:34:55.424006520 +0200 @@ -1,0 +2,7 @@ +Sat Sep 28 02:01:09 UTC 2019 - psim...@suse.com + +- Update retry to version 0.8.0.2. + 0.8.0.2 + * Update docs for default retry policy. [PR 64](https://github.com/Soostone/retry/pull/64) + +--- Old: retry-0.8.0.1.tar.gz New: retry-0.8.0.2.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.pOvCFD/_old 2019-10-18 14:34:56.196004509 +0200 +++ /var/tmp/diff_new_pack.pOvCFD/_new 2019-10-18 14:34:56.204004488 +0200 @@ -19,7 +19,7 @@ %global pkg_name retry %bcond_with tests Name: ghc-%{pkg_name} -Version:0.8.0.1 +Version:0.8.0.2 Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause ++ retry-0.8.0.1.tar.gz -> retry-0.8.0.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.1/changelog.md new/retry-0.8.0.2/changelog.md --- old/retry-0.8.0.1/changelog.md 2019-05-01 19:37:33.0 +0200 +++ new/retry-0.8.0.2/changelog.md 2019-09-27 22:24:28.0 +0200 @@ -1,3 +1,6 @@ +0.8.0.2 +* Update docs for default retry policy. [PR 64](https://github.com/Soostone/retry/pull/64) + 0.8.0.1 * Loosen upper bounds diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.1/retry.cabal new/retry-0.8.0.2/retry.cabal --- old/retry-0.8.0.1/retry.cabal 2019-05-01 19:37:42.0 +0200 +++ new/retry-0.8.0.2/retry.cabal 2019-09-27 22:23:31.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.8.0.1 +version: 0.8.0.2 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.1/src/Control/Retry.hs new/retry-0.8.0.2/src/Control/Retry.hs --- old/retry-0.8.0.1/src/Control/Retry.hs 2019-01-08 22:41:56.0 +0100 +++ new/retry-0.8.0.2/src/Control/Retry.hs 2019-09-27 17:56:03.0 +0200 @@ -131,9 +131,9 @@ -- Naturally, 'mempty' will retry immediately (delay 0) for an -- unlimited number of retries, forming the identity for the 'Monoid'. -- --- The default under 'def' implements a constant 50ms delay, up to 5 times: +-- The default retry policy 'retryPolicyDefault' implements a constant 50ms delay, up to 5 times: -- --- >> def = constantDelay 5 <> limitRetries 5 +-- >> retryPolicyDefault = constantDelay 5 <> limitRetries 5 -- -- For anything more complex, just define your own 'RetryPolicyM': -- @@ -403,7 +403,7 @@ -- -- >>> import Data.Maybe -- >>> let f _ = putStrLn "Running action" >> return Nothing --- >>> retrying def (const $ return . isNothing) f +-- >>> retrying retryPolicyDefault (const $ return . isNothing) f -- Running action -- Running action -- Running action @@ -450,7 +450,7 @@ -- before finally failing for good: -- -- >>> let f _ = putStrLn "Running action" >> error "this is an error" --- >>> recoverAll def f +-- >>> recoverAll retryPolicyDefault f -- Running action -- Running action -- Running action @@ -509,7 +509,7 @@ :: (MonadIO m, MonadCatch m) #endif => RetryPolicyM m --- ^ Just use 'def' for default settings +-- ^ Just use 'retryPolicyDefault' for default settings -> [(RetryStatus -> Handler m Bool)] -- ^ Should a given exception be retried? Action will be -- retried if this returns True *and* the policy allows it. @@ -555,7 +555,7 @@ :: (MonadIO m, MonadCatch m) #endif => RetryPolicyM m --- ^ Just use 'def' for default settings +-- ^ Just use 'retryPolicyDefault' for default settings -> [(RetryStatus -> Handler m Bool)] -- ^ Should a given exception be retried? Action will be -- retried if this returns True *and* the policy allows it. @@ -725,7 +725,7 @@ -- instance Exception AnotherException --- test = retrying def [h1,h2] f +-- test =
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2019-05-12 11:36:17 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new.5148 (New) Package is "ghc-retry" Sun May 12 11:36:17 2019 rev:16 rq:701773 version:0.8.0.1 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2019-02-17 12:20:26.612215367 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new.5148/ghc-retry.changes 2019-05-12 11:36:21.978391165 +0200 @@ -1,0 +2,7 @@ +Thu May 2 02:00:58 UTC 2019 - psim...@suse.com + +- Update retry to version 0.8.0.1. + 0.8.0.1 + * Loosen upper bounds + +--- Old: retry-0.8.0.0.tar.gz New: retry-0.8.0.1.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.hNNhpF/_old 2019-05-12 11:36:23.394395310 +0200 +++ /var/tmp/diff_new_pack.hNNhpF/_new 2019-05-12 11:36:23.398395321 +0200 @@ -19,7 +19,7 @@ %global pkg_name retry %bcond_with tests Name: ghc-%{pkg_name} -Version:0.8.0.0 +Version:0.8.0.1 Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause ++ retry-0.8.0.0.tar.gz -> retry-0.8.0.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.0/changelog.md new/retry-0.8.0.1/changelog.md --- old/retry-0.8.0.0/changelog.md 2019-01-08 22:41:56.0 +0100 +++ new/retry-0.8.0.1/changelog.md 2019-05-01 19:37:33.0 +0200 @@ -1,3 +1,6 @@ +0.8.0.1 +* Loosen upper bounds + 0.8.0.0 * Remove dependency on data-default-class diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.8.0.0/retry.cabal new/retry-0.8.0.1/retry.cabal --- old/retry-0.8.0.0/retry.cabal 2019-01-08 22:41:56.0 +0100 +++ new/retry-0.8.0.1/retry.cabal 2019-05-01 19:37:42.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.8.0.0 +version: 0.8.0.1 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE @@ -37,10 +37,10 @@ exposed-modules: Control.Retry build-depends: base >= 4.6 && < 5 -, exceptions >= 0.5 && < 0.11 +, exceptions >= 0.5 , ghc-prim < 0.6 -, random >= 1 && < 1.2 -, transformers < 0.7 +, random >= 1 +, transformers hs-source-dirs: src default-language:Haskell2010
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2019-02-17 12:20:26 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new.28833 (New) Package is "ghc-retry" Sun Feb 17 12:20:26 2019 rev:15 rq:674306 version:0.8.0.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2018-10-25 09:03:26.930610923 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new.28833/ghc-retry.changes 2019-02-17 12:20:26.612215367 +0100 @@ -1,0 +2,7 @@ +Thu Jan 31 03:01:49 UTC 2019 - psim...@suse.com + +- Update retry to version 0.8.0.0. + 0.8.0.0 + * Remove dependency on data-default-class + +--- Old: retry-0.7.7.0.tar.gz New: retry-0.8.0.0.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.RmsyEB/_old 2019-02-17 12:20:27.148215220 +0100 +++ /var/tmp/diff_new_pack.RmsyEB/_new 2019-02-17 12:20:27.148215220 +0100 @@ -1,7 +1,7 @@ # # spec file for package ghc-retry # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pkg_name retry %bcond_with tests Name: ghc-%{pkg_name} -Version:0.7.7.0 +Version:0.8.0.0 Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause @@ -27,7 +27,6 @@ URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-data-default-class-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-random-devel BuildRequires: ghc-rpm-macros ++ retry-0.7.7.0.tar.gz -> retry-0.8.0.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.7.0/changelog.md new/retry-0.8.0.0/changelog.md --- old/retry-0.7.7.0/changelog.md 2018-08-17 00:08:54.0 +0200 +++ new/retry-0.8.0.0/changelog.md 2019-01-08 22:41:56.0 +0100 @@ -1,3 +1,6 @@ +0.8.0.0 +* Remove dependency on data-default-class + 0.7.7.0 * Add `natTransformRetryPolicy` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.7.0/retry.cabal new/retry-0.8.0.0/retry.cabal --- old/retry-0.7.7.0/retry.cabal 2018-08-28 01:35:43.0 +0200 +++ new/retry-0.8.0.0/retry.cabal 2019-01-08 22:41:56.0 +0100 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.7.0 +version: 0.8.0.0 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE @@ -37,7 +37,6 @@ exposed-modules: Control.Retry build-depends: base >= 4.6 && < 5 -, data-default-class , exceptions >= 0.5 && < 0.11 , ghc-prim < 0.6 , random >= 1 && < 1.2 @@ -62,7 +61,6 @@ base ==4.* , exceptions , transformers - , data-default-class , random , time , HUnit >= 1.2.5.2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.7.0/src/Control/Retry.hs new/retry-0.8.0.0/src/Control/Retry.hs --- old/retry-0.7.7.0/src/Control/Retry.hs 2018-08-17 00:07:47.0 +0200 +++ new/retry-0.8.0.0/src/Control/Retry.hs 2019-01-08 22:41:56.0 +0100 @@ -35,6 +35,7 @@ RetryPolicyM (..) , RetryPolicy , retryPolicy +, retryPolicyDefault , natTransformRetryPolicy , RetryStatus (..) , defaultRetryStatus @@ -87,7 +88,6 @@ import Control.Monad.Trans.Class import Control.Monad.Trans.Maybe import Control.Monad.Trans.State -import Data.Default.Class import Data.List (foldl') import Data.Maybe import GHC.Generics @@ -148,9 +148,9 @@ -- type signatures pre-0.7. type RetryPolicy = forall m . Monad m => RetryPolicyM m - -instance Monad m => Default (RetryPolicyM m) where -def = constantDelay 5 <> limitRetries 5 +-- | Default retry policy +retryPolicyDefault :: RetryPolicy +retryPolicyDefault = constantDelay 5 <> limitRetries 5 -- Base 4.9.0 adds a
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2018-10-25 09:03:25 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Thu Oct 25 09:03:25 2018 rev:14 rq:643450 version:0.7.7.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2018-09-03 10:34:48.408623623 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2018-10-25 09:03:26.930610923 +0200 @@ -1,0 +2,5 @@ +Sat Oct 20 11:31:57 UTC 2018 - Peter Simons + +- Use https URL to refer to bugs.opensuse.org. + +--- Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.32vuUL/_old 2018-10-25 09:03:27.634610491 +0200 +++ /var/tmp/diff_new_pack.32vuUL/_new 2018-10-25 09:03:27.634610491 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ #
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2018-09-03 10:34:44 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Mon Sep 3 10:34:44 2018 rev:13 rq:632485 version:0.7.7.0 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2018-08-20 16:20:54.768948924 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2018-09-03 10:34:48.408623623 +0200 @@ -1,0 +2,7 @@ +Thu Aug 30 15:29:10 UTC 2018 - psim...@suse.com + +- Update retry to version 0.7.7.0. + 0.7.7.0 + * Add `natTransformRetryPolicy` + +--- Old: retry-0.7.6.3.tar.gz New: retry-0.7.7.0.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.KtKp9L/_old 2018-09-03 10:34:50.108628007 +0200 +++ /var/tmp/diff_new_pack.KtKp9L/_new 2018-09-03 10:34:50.112628018 +0200 @@ -19,7 +19,7 @@ %global pkg_name retry %bcond_with tests Name: ghc-%{pkg_name} -Version:0.7.6.3 +Version:0.7.7.0 Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause ++ retry-0.7.6.3.tar.gz -> retry-0.7.7.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.6.3/changelog.md new/retry-0.7.7.0/changelog.md --- old/retry-0.7.6.3/changelog.md 2018-08-14 17:10:56.0 +0200 +++ new/retry-0.7.7.0/changelog.md 2018-08-17 00:08:54.0 +0200 @@ -1,3 +1,6 @@ +0.7.7.0 +* Add `natTransformRetryPolicy` + 0.7.6.3 * Documentation fix on `recoverAll` diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.6.3/retry.cabal new/retry-0.7.7.0/retry.cabal --- old/retry-0.7.6.3/retry.cabal 2018-08-14 17:11:06.0 +0200 +++ new/retry-0.7.7.0/retry.cabal 2018-08-28 01:35:43.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.6.3 +version: 0.7.7.0 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.6.3/src/Control/Retry.hs new/retry-0.7.7.0/src/Control/Retry.hs --- old/retry-0.7.6.3/src/Control/Retry.hs 2018-08-14 17:09:35.0 +0200 +++ new/retry-0.7.7.0/src/Control/Retry.hs 2018-08-17 00:07:47.0 +0200 @@ -35,6 +35,7 @@ RetryPolicyM (..) , RetryPolicy , retryPolicy +, natTransformRetryPolicy , RetryStatus (..) , defaultRetryStatus , applyPolicy @@ -177,6 +178,21 @@ --- +-- | Applies a natural transformation to a policy to run a RetryPolicy +-- meant for the monad @m@ in the monad @n@ provided a transformation +-- from @m@ to @n@ is available. A common case is if you have a pure +-- policy, @RetryPolicyM Identity@ and want to use it to govern an +-- @IO@ computation you could write: +-- +-- @ +-- purePolicyInIO :: RetryPolicyM Identity -> RetryPolicyM IO +-- purePolicyInIO = natTransformRetryPolicy (pure . runIdentity) +-- @ +natTransformRetryPolicy :: (forall a. m a -> n a) -> RetryPolicyM m -> RetryPolicyM n +natTransformRetryPolicy f (RetryPolicyM p) = RetryPolicyM $ \stat -> f (p stat) + + +--- -- | Datatype with stats about retries made thus far. The constructor -- is deliberately not exported to make additional fields easier to -- add in a backward-compatible manner. To read or modify fields in
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2018-08-20 16:20:52 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Mon Aug 20 16:20:52 2018 rev:12 rq:630372 version:0.7.6.3 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2018-07-21 10:22:53.870991127 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2018-08-20 16:20:54.768948924 +0200 @@ -1,0 +2,7 @@ +Fri Aug 17 09:43:21 UTC 2018 - psim...@suse.com + +- Update retry to version 0.7.6.3. + 0.7.6.3 + * Documentation fix on `recoverAll` + +--- Old: retry-0.7.6.2.tar.gz New: retry-0.7.6.3.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.29YHd7/_old 2018-08-20 16:20:55.180949506 +0200 +++ /var/tmp/diff_new_pack.29YHd7/_new 2018-08-20 16:20:55.180949506 +0200 @@ -19,7 +19,7 @@ %global pkg_name retry %bcond_with tests Name: ghc-%{pkg_name} -Version:0.7.6.2 +Version:0.7.6.3 Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause ++ retry-0.7.6.2.tar.gz -> retry-0.7.6.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.6.2/changelog.md new/retry-0.7.6.3/changelog.md --- old/retry-0.7.6.2/changelog.md 2018-03-22 18:45:26.0 +0100 +++ new/retry-0.7.6.3/changelog.md 2018-08-14 17:10:56.0 +0200 @@ -1,3 +1,6 @@ +0.7.6.3 +* Documentation fix on `recoverAll` + 0.7.6.2 * Loosen bounds on exceptions again. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.6.2/retry.cabal new/retry-0.7.6.3/retry.cabal --- old/retry-0.7.6.2/retry.cabal 2018-03-22 18:45:18.0 +0100 +++ new/retry-0.7.6.3/retry.cabal 2018-08-14 17:11:06.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.6.2 +version: 0.7.6.3 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.6.2/src/Control/Retry.hs new/retry-0.7.6.3/src/Control/Retry.hs --- old/retry-0.7.6.2/src/Control/Retry.hs 2018-02-05 21:10:48.0 +0100 +++ new/retry-0.7.6.3/src/Control/Retry.hs 2018-08-14 17:09:35.0 +0200 @@ -428,7 +428,7 @@ -- good idea to catch async exceptions as it can result in hanging -- threads and programs. Note that if you just throw an exception to -- this thread that does not descend from SomeException, recoverAll --- will catch it. +-- will not catch it. -- -- See how the action below is run once and retried 5 more times -- before finally failing for good: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.6.2/test/Tests/Control/Retry.hs new/retry-0.7.6.3/test/Tests/Control/Retry.hs --- old/retry-0.7.6.2/test/Tests/Control/Retry.hs 2018-02-05 21:10:48.0 +0100 +++ new/retry-0.7.6.3/test/Tests/Control/Retry.hs 2018-08-14 17:09:35.0 +0200 @@ -88,7 +88,6 @@ f (res :: Either Custom1 ()) @?= Right () - , testCase "fails beyond policy using custom exceptions" $ do f <- mkFailN Custom1 3 res <- try $ recovering @@ -97,6 +96,12 @@ f (res :: Either Custom1 ()) @?= Left Custom1 + , testCase "recoverAll won't catch exceptions which are not decendants of SomeException" $ do + f <- mkFailN Custom1 4 + res <- try $ recoverAll +(constantDelay 5000 <> limitRetries 3) +f + (res :: Either Custom1 ()) @?= Left Custom1 , testCase "does not recover from unhandled exceptions" $ do f <- mkFailN Custom2 2
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2018-07-21 10:22:51 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Sat Jul 21 10:22:51 2018 rev:11 rq:623846 version:0.7.6.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2018-05-30 12:27:03.502793209 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2018-07-21 10:22:53.870991127 +0200 @@ -1,0 +2,6 @@ +Wed Jul 18 14:26:39 UTC 2018 - psim...@suse.com + +- Cosmetic: replace tabs with blanks, strip trailing white space, + and update copyright headers with spec-cleaner. + +--- @@ -81 +86,0 @@ - Other differences: --
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2018-05-30 12:12:29 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Wed May 30 12:12:29 2018 rev:10 rq:607874 version:0.7.6.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2017-09-15 22:10:19.764810325 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2018-05-30 12:27:03.502793209 +0200 @@ -1,0 +2,11 @@ +Mon May 14 17:02:11 UTC 2018 - psim...@suse.com + +- Update retry to version 0.7.6.2. + * Clarify the semantics of `limitRetriesByDelay`. + * Add `limitRetriesByCumulativeDelay` + * Improve haddocks for fullJitterBackoff. + * Add Semigroup instance when the Semigroup class is available through base. + * Loosen dependency upper bounds. + * Add skipAsyncExceptions helper function + +--- Old: retry-0.7.4.2.tar.gz New: retry-0.7.6.2.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.hEUulV/_old 2018-05-30 12:27:04.278766451 +0200 +++ /var/tmp/diff_new_pack.hEUulV/_new 2018-05-30 12:27:04.282766313 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-retry # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %global pkg_name retry %bcond_with tests Name: ghc-%{pkg_name} -Version:0.7.4.2 +Version:0.7.6.2 Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause @@ -34,10 +34,12 @@ BuildRequires: ghc-transformers-devel %if %{with tests} BuildRequires: ghc-HUnit-devel -BuildRequires: ghc-QuickCheck-devel -BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hedgehog-devel BuildRequires: ghc-mtl-devel BuildRequires: ghc-stm-devel +BuildRequires: ghc-tasty-devel +BuildRequires: ghc-tasty-hedgehog-devel +BuildRequires: ghc-tasty-hunit-devel BuildRequires: ghc-time-devel %endif @@ -80,7 +82,7 @@ %ghc_pkg_recache %files -f %{name}.files -%doc LICENSE +%license LICENSE %files devel -f %{name}-devel.files %doc README.md changelog.md ++ retry-0.7.4.2.tar.gz -> retry-0.7.6.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.4.2/README.md new/retry-0.7.6.2/README.md --- old/retry-0.7.4.2/README.md 2016-11-23 19:32:49.0 +0100 +++ new/retry-0.7.6.2/README.md 2017-10-24 17:33:08.0 +0200 @@ -33,4 +33,5 @@ - John Wiegley - Michael Snoyman - Michael Xavier +- Marco Zocca (@ocramz) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.4.2/changelog.md new/retry-0.7.6.2/changelog.md --- old/retry-0.7.4.2/changelog.md 2016-11-23 19:32:49.0 +0100 +++ new/retry-0.7.6.2/changelog.md 2018-03-22 18:45:26.0 +0100 @@ -1,3 +1,25 @@ +0.7.6.2 +* Loosen bounds on exceptions again. + +0.7.6.1 +* Loosen bounds on exceptions. + +0.7.6.0 +* Clarify the semantics of `limitRetriesByDelay`. +* Add `limitRetriesByCumulativeDelay` + +0.7.5.1 +* Improve haddocks for fullJitterBackoff. + +0.7.5.0 +* Add Semigroup instance when the Semigroup class is available through base. + +0.7.4.3 +* Loosen dependency upper bounds. + +0.7.5 +* Add skipAsyncExceptions helper function + 0.7.4.2 * Loosen HUnit dependency for tests. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.4.2/retry.cabal new/retry-0.7.6.2/retry.cabal --- old/retry-0.7.4.2/retry.cabal 2016-11-23 19:32:49.0 +0100 +++ new/retry-0.7.6.2/retry.cabal 2018-03-22 18:45:18.0 +0100 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.4.2 +version: 0.7.6.2 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE @@ -29,24 +29,35 @@ README.md changelog.md +flag lib-Werror + default: False + manual: True + library exposed-modules: Control.Retry build-depends: base >= 4.6 && < 5 , data-default-class -, exceptions >= 0.5 && < 0.9 +, exceptions >= 0.5 && < 0.11 , ghc-prim < 0.6 , random >= 1 && < 1.2 ,
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2017-09-15 22:10:18 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Fri Sep 15 22:10:18 2017 rev:9 rq:525314 version:0.7.4.2 Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2017-01-12 15:52:13.754067001 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2017-09-15 22:10:19.764810325 +0200 @@ -1,0 +2,5 @@ +Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com + +- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. + +--- Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.b3Wxny/_old 2017-09-15 22:10:20.304734258 +0200 +++ /var/tmp/diff_new_pack.b3Wxny/_new 2017-09-15 22:10:20.308733695 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-retry # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -23,8 +23,8 @@ Release:0 Summary:Retry combinators for monadic actions that may fail License:BSD-3-Clause -Group: Development/Languages/Other -Url:https://hackage.haskell.org/package/%{pkg_name} +Group: Development/Libraries/Haskell +URL:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-data-default-class-devel @@ -32,7 +32,6 @@ BuildRequires: ghc-random-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel @@ -53,7 +52,7 @@ %package devel Summary:Haskell %{pkg_name} library development files -Group: Development/Libraries/Other +Group: Development/Libraries/Haskell Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} @@ -81,11 +80,9 @@ %ghc_pkg_recache %files -f %{name}.files -%defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files -%defattr(-,root,root,-) %doc README.md changelog.md %changelog
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2016-07-27 16:12:12 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2016-06-07 23:48:25.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2016-07-27 16:12:13.0 +0200 @@ -1,0 +2,10 @@ +Fri Jul 22 05:57:39 UTC 2016 - psim...@suse.com + +- Update to version 0.7.4.1 revision 0 with cabal2obs. + +--- +Sun Jul 10 16:55:31 UTC 2016 - psim...@suse.com + +- Update to version 0.7.4 revision 0 with cabal2obs. + +--- Old: retry-0.7.4.tar.gz New: retry-0.7.4.1.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.HyBXLd/_old 2016-07-27 16:12:14.0 +0200 +++ /var/tmp/diff_new_pack.HyBXLd/_new 2016-07-27 16:12:14.0 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-retry # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,35 +15,32 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -%global pkg_name retry +%global pkg_name retry %bcond_with tests - -Name: ghc-retry -Version:0.7.4 +Name: ghc-%{pkg_name} +Version:0.7.4.1 Release:0 Summary:Retry combinators for monadic actions that may fail -Group: System/Libraries - License:BSD-3-Clause +Group: System/Libraries Url:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build - BuildRequires: ghc-Cabal-devel -BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-data-default-class-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-random-devel +BuildRequires: ghc-rpm-macros BuildRequires: ghc-transformers-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-build %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-hspec-devel +BuildRequires: ghc-mtl-devel +BuildRequires: ghc-stm-devel BuildRequires: ghc-time-devel %endif -# End cabal-rpm deps %description This package exposes combinators that can wrap arbitrary monadic actions. @@ -54,19 +51,17 @@ query may time out for a while, in which case we should hang back for a bit and retry the query instead of simply raising an exception. - %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other +Requires: %{name} = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} -Requires: %{name} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. - %prep %setup -q -n %{pkg_name}-%{version} @@ -80,26 +75,21 @@ %check -%if %{with tests} -%cabal test -%endif +%cabal_test %post devel %ghc_pkg_recache - %postun devel %ghc_pkg_recache - %files -f %{name}.files %defattr(-,root,root,-) %doc LICENSE - %files devel -f %{name}-devel.files %defattr(-,root,root,-) - +%doc README.md changelog.md %changelog ++ retry-0.7.4.tar.gz -> retry-0.7.4.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.4/README.md new/retry-0.7.4.1/README.md --- old/retry-0.7.4/README.md 2016-06-01 20:32:12.0 +0200 +++ new/retry-0.7.4.1/README.md 2016-07-15 17:24:50.0 +0200 @@ -18,7 +18,7 @@ ## Changes -See [changelog.md](changelog.md). +See [https://github.com/Soostone/retry/blob/master/changelog.md](changelog.md). ## Author diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.4/changelog.md new/retry-0.7.4.1/changelog.md --- old/retry-0.7.4/changelog.md2016-06-01 20:32:12.0 +0200 +++ new/retry-0.7.4.1/changelog.md 2016-07-15 17:24:50.0 +0200 @@ -1,3 +1,6 @@ +0.7.4.1 +* Loosen QuickCheck dependency for tests. + 0.7.4 * Widen transformers dependency diff -urN
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2016-06-07 23:48:24 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2016-05-31 12:25:08.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2016-06-07 23:48:25.0 +0200 @@ -1,0 +2,6 @@ +Thu Jun 2 04:51:45 UTC 2016 - mimi...@gmail.com + +- update to 0.7.4 +* Widen transformers dependency + +--- Old: retry-0.7.3.tar.gz New: retry-0.7.4.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.xVZaax/_old 2016-06-07 23:48:26.0 +0200 +++ /var/tmp/diff_new_pack.xVZaax/_new 2016-06-07 23:48:26.0 +0200 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-retry -Version:0.7.3 +Version:0.7.4 Release:0 Summary:Retry combinators for monadic actions that may fail Group: System/Libraries ++ retry-0.7.3.tar.gz -> retry-0.7.4.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.3/changelog.md new/retry-0.7.4/changelog.md --- old/retry-0.7.3/changelog.md2016-05-27 19:49:33.0 +0200 +++ new/retry-0.7.4/changelog.md2016-06-01 20:32:12.0 +0200 @@ -1,3 +1,6 @@ +0.7.4 +* Widen transformers dependency + 0.7.3 * Widen ghc-prim dependency for GHC 8 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.3/retry.cabal new/retry-0.7.4/retry.cabal --- old/retry-0.7.3/retry.cabal 2016-05-27 19:49:33.0 +0200 +++ new/retry-0.7.4/retry.cabal 2016-06-01 20:32:12.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.3 +version: 0.7.4 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE @@ -37,7 +37,7 @@ , exceptions >= 0.5 && < 0.9 , ghc-prim < 0.6 , random >= 1 && < 1.2 -, transformers < 0.6 +, transformers < 0.7 hs-source-dirs: src default-language:Haskell2010
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2016-05-31 12:25:06 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2016-05-17 17:14:43.0 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2016-05-31 12:25:08.0 +0200 @@ -1,0 +2,6 @@ +Mon May 30 09:57:28 UTC 2016 - mimi...@gmail.com + +- update to 0.7.3 +* Widen ghc-prim dependency for GHC 8 + +--- Old: retry-0.7.2.tar.gz New: retry-0.7.3.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.XvnPui/_old 2016-05-31 12:25:09.0 +0200 +++ /var/tmp/diff_new_pack.XvnPui/_new 2016-05-31 12:25:09.0 +0200 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-retry -Version:0.7.2 +Version:0.7.3 Release:0 Summary:Retry combinators for monadic actions that may fail Group: System/Libraries ++ retry-0.7.2.tar.gz -> retry-0.7.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.2/changelog.md new/retry-0.7.3/changelog.md --- old/retry-0.7.2/changelog.md2016-05-03 17:49:56.0 +0200 +++ new/retry-0.7.3/changelog.md2016-05-27 19:49:33.0 +0200 @@ -1,3 +1,6 @@ +0.7.3 +* Widen ghc-prim dependency for GHC 8 + 0.7.2 * Fix premature integer overflow error thanks to Mitsutoshi Aoe diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.2/retry.cabal new/retry-0.7.3/retry.cabal --- old/retry-0.7.2/retry.cabal 2016-05-03 17:49:56.0 +0200 +++ new/retry-0.7.3/retry.cabal 2016-05-27 19:49:33.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.2 +version: 0.7.3 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE @@ -35,7 +35,7 @@ base >= 4.6 && < 5 , data-default-class , exceptions >= 0.5 && < 0.9 -, ghc-prim < 0.5 +, ghc-prim < 0.6 , random >= 1 && < 1.2 , transformers < 0.6 hs-source-dirs: src
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2016-05-17 17:14:41 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2016-01-22 01:08:27.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2016-05-17 17:14:43.0 +0200 @@ -1,0 +2,6 @@ +Wed May 4 07:11:22 UTC 2016 - mimi...@gmail.com + +- update to 0.7.2 +* Fix premature integer overflow + +--- Old: retry-0.7.1.tar.gz New: retry-0.7.2.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.c3fvQx/_old 2016-05-17 17:14:44.0 +0200 +++ /var/tmp/diff_new_pack.c3fvQx/_new 2016-05-17 17:14:44.0 +0200 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-retry -Version:0.7.1 +Version:0.7.2 Release:0 Summary:Retry combinators for monadic actions that may fail Group: System/Libraries ++ retry-0.7.1.tar.gz -> retry-0.7.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.1/changelog.md new/retry-0.7.2/changelog.md --- old/retry-0.7.1/changelog.md2016-01-13 18:40:22.0 +0100 +++ new/retry-0.7.2/changelog.md2016-05-03 17:49:56.0 +0200 @@ -1,3 +1,6 @@ +0.7.2 +* Fix premature integer overflow error thanks to Mitsutoshi Aoe + 0.7.1 * Various documentation updates. * Add stepping combinator for manual retries. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.1/retry.cabal new/retry-0.7.2/retry.cabal --- old/retry-0.7.1/retry.cabal 2016-01-13 18:40:22.0 +0100 +++ new/retry-0.7.2/retry.cabal 2016-05-03 17:49:56.0 +0200 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.1 +version: 0.7.2 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE @@ -35,8 +35,9 @@ base >= 4.6 && < 5 , data-default-class , exceptions >= 0.5 && < 0.9 +, ghc-prim < 0.5 , random >= 1 && < 1.2 -, transformers < 0.5 +, transformers < 0.6 hs-source-dirs: src default-language:Haskell2010 @@ -54,7 +55,9 @@ , random , time , QuickCheck >= 2.7 && < 2.9 - , HUnit >= 1.2.5.2 && < 1.3 + , HUnit >= 1.2.5.2 && < 1.4 , hspec >= 1.9 , stm + , ghc-prim + , mtl default-language: Haskell2010 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.1/src/Control/Retry.hs new/retry-0.7.2/src/Control/Retry.hs --- old/retry-0.7.1/src/Control/Retry.hs2016-01-13 18:40:22.0 +0100 +++ new/retry-0.7.2/src/Control/Retry.hs2016-05-03 17:49:56.0 +0200 @@ -1,8 +1,11 @@ {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE MagicHash #-} {-# LANGUAGE RankNTypes#-} +{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} +{-# LANGUAGE UnboxedTuples #-} {-# LANGUAGE ViewPatterns #-} - @@ -49,6 +52,7 @@ , stepping , recoverAll , logRetries +, defaultLogMsg -- * Retry Policies , constantDelay @@ -82,9 +86,12 @@ import Control.Monad.Trans.Maybe import Control.Monad.Trans.State import Data.Default.Class +import Data.List (foldl') import Data.Functor.Identity import Data.Maybe import GHC.Generics +import GHC.Prim +import GHC.Types (Int(I#)) import System.Random import Data.Monoid import Preludehiding (catch) @@ -204,7 +211,7 @@ case res of Just delay -> return $! Just $! RetryStatus { rsIterNumber = rsIterNumber s + 1 - , rsCumulativeDelay = rsCumulativeDelay s + delay + , rsCumulativeDelay = rsCumulativeDelay s `boundedPlus` delay , rsPreviousDelay = Just delay } Nothing -> return Nothing @@ -276,8 +283,8 @@ :: Int -- ^ First delay in
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2016-01-21 23:43:21 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2016-01-08 15:22:47.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2016-01-22 01:08:27.0 +0100 @@ -1,0 +2,10 @@ +Fri Jan 15 10:08:09 UTC 2016 - mimi...@gmail.com + +- update to 0.7.1 +* Various documentation updates. +* Add stepping combinator for manual retries. +* Add applyPolicy and applyAndDelay +* Add Read instance for RetryStatus +* Fix logic bug in rsPreviousDelay in first retry + +--- Old: retry-0.7.0.1.tar.gz New: retry-0.7.1.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.PLGn45/_old 2016-01-22 01:08:29.0 +0100 +++ /var/tmp/diff_new_pack.PLGn45/_new 2016-01-22 01:08:29.0 +0100 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-retry -Version:0.7.0.1 +Version:0.7.1 Release:0 Summary:Retry combinators for monadic actions that may fail Group: System/Libraries ++ retry-0.7.0.1.tar.gz -> retry-0.7.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.0.1/changelog.md new/retry-0.7.1/changelog.md --- old/retry-0.7.0.1/changelog.md 2015-11-15 01:28:27.0 +0100 +++ new/retry-0.7.1/changelog.md2016-01-13 18:40:22.0 +0100 @@ -1,3 +1,10 @@ +0.7.1 +* Various documentation updates. +* Add stepping combinator for manual retries. +* Add applyPolicy and applyAndDelay +* Add Read instance for RetryStatus +* Fix logic bug in rsPreviousDelay in first retry + 0.7.0.1 * Officially drop support for GHC < 7.6 due to usage of Generics. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.0.1/retry.cabal new/retry-0.7.1/retry.cabal --- old/retry-0.7.0.1/retry.cabal 2015-11-15 01:28:27.0 +0100 +++ new/retry-0.7.1/retry.cabal 2016-01-13 18:40:22.0 +0100 @@ -14,7 +14,7 @@ case we should hang back for a bit and retry the query instead of simply raising an exception. -version: 0.7.0.1 +version: 0.7.1 synopsis:Retry combinators for monadic actions that may fail license: BSD3 license-file:LICENSE diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.7.0.1/src/Control/Retry.hs new/retry-0.7.1/src/Control/Retry.hs --- old/retry-0.7.0.1/src/Control/Retry.hs 2015-11-15 01:28:27.0 +0100 +++ new/retry-0.7.1/src/Control/Retry.hs2016-01-13 18:40:22.0 +0100 @@ -32,12 +32,11 @@ RetryPolicyM (..) , RetryPolicy , retryPolicy -, RetryStatus --- ** Fields for 'RetryStatus' -, rsIterNumber -, rsCumulativeDelay -, rsPreviousDelay +, RetryStatus (..) , defaultRetryStatus +, applyPolicy +, applyAndDelay + -- ** Lenses for 'RetryStatus' , rsIterNumberL @@ -47,6 +46,7 @@ -- * Applying Retry Policies , retrying , recovering +, stepping , recoverAll , logRetries @@ -162,8 +162,8 @@ data RetryStatus = RetryStatus { rsIterNumber :: !Int -- ^ Iteration number, where 0 is the first try , rsCumulativeDelay :: !Int -- ^ Delay incurred so far from retries in microseconds -, rsPreviousDelay :: !(Maybe Int) -- ^ Previous attempt's delay. Will always be Nothing on first run. -} deriving (Show, Eq, Generic) +, rsPreviousDelay :: !(Maybe Int) -- ^ Latest attempt's delay. Will always be Nothing on first run. +} deriving (Read, Show, Eq, Generic) --- @@ -190,6 +190,45 @@ {-# INLINE rsPreviousDelayL #-} + +--- +-- | Apply policy on status to see what the decision would be. +-- 'Nothing' implies no retry, 'Just' returns updated status. +applyPolicy +:: Monad m +=> RetryPolicyM m +-> RetryStatus +-> m (Maybe RetryStatus) +applyPolicy (RetryPolicyM policy) s = do +res <- policy s +case res of + Just delay -> return $! Just $! RetryStatus + { rsIterNumber = rsIterNumber s + 1 + , rsCumulativeDelay = rsCumulativeDelay s + delay + , rsPreviousDelay = Just delay } + Nothing -> return
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2016-01-08 15:22:46 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Changes: --- /work/SRC/openSUSE:Factory/ghc-retry/ghc-retry.changes 2015-11-26 17:03:06.0 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2016-01-08 15:22:47.0 +0100 @@ -1,0 +2,17 @@ +Wed Dec 23 16:32:10 UTC 2015 - mimi...@gmail.com + +- update to 0.7.0.1 +* RetryPolicy has become RetryPolicyM, allowing for policy logic to consult the + monad context. +* RetryPolicyM now takes a RetryStatus value. Use the function rsIterNum to + preserve existing behavior of RetryPolicy only receiving the number. +* The monadic action now gets the RetryStatus on each try. Use const if you +don't need it. +* recoverAll explicitly does not handle the standard async exceptions. Users are + encouraged to do the same when using recovering, as catching async exceptions + can be hazardous. +* We no longer re-export (<>) from Monoid. +* Utility functions simulatePolicy and simulatePolicyPP have been added which help + predict how a policy will behave on each iteration. + +--- Old: retry-0.6.tar.gz New: retry-0.7.0.1.tar.gz Other differences: -- ++ ghc-retry.spec ++ --- /var/tmp/diff_new_pack.ewQWge/_old 2016-01-08 15:22:48.0 +0100 +++ /var/tmp/diff_new_pack.ewQWge/_new 2016-01-08 15:22:48.0 +0100 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-retry -Version:0.6 +Version:0.7.0.1 Release:0 Summary:Retry combinators for monadic actions that may fail Group: System/Libraries @@ -35,6 +35,7 @@ # Begin cabal-rpm deps: BuildRequires: ghc-data-default-class-devel BuildRequires: ghc-exceptions-devel +BuildRequires: ghc-random-devel BuildRequires: ghc-transformers-devel %if %{with tests} BuildRequires: ghc-HUnit-devel ++ retry-0.6.tar.gz -> retry-0.7.0.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.6/README.md new/retry-0.7.0.1/README.md --- old/retry-0.6/README.md 1970-01-01 01:00:00.0 +0100 +++ new/retry-0.7.0.1/README.md 2015-11-15 01:28:27.0 +0100 @@ -0,0 +1,36 @@ +# README [![Build Status](https://travis-ci.org/Soostone/retry.svg?branch=master)](https://travis-ci.org/Soostone/retry) [![Coverage Status](https://coveralls.io/repos/Soostone/retry/badge.png?branch=master)](https://coveralls.io/r/Soostone/retry?branch=master) + +retry - combinators for monadic actions that may fail + +## About + +Monadic action combinators that add delayed-retry functionality, +potentially with exponential-backoff, to arbitrary actions. + +The main purpose of this package is to make it easy to work reliably +with IO and similar actions that often fail. Common examples are +database queries and large file uploads. + + +## Documentation + +Please see haddocks for documentation. + +## Changes + +See [changelog.md](changelog.md). + +## Author + +Ozgun Ataman, Soostone Inc + + +## Contributors + +Contributors, please list yourself here. + +- Mitsutoshi Aoe (@maoe) +- John Wiegley +- Michael Snoyman +- Michael Xavier + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/retry-0.6/changelog.md new/retry-0.7.0.1/changelog.md --- old/retry-0.6/changelog.md 1970-01-01 01:00:00.0 +0100 +++ new/retry-0.7.0.1/changelog.md 2015-11-15 01:28:27.0 +0100 @@ -0,0 +1,49 @@ +0.7.0.1 +* Officially drop support for GHC < 7.6 due to usage of Generics. + +0.7 +* RetryPolicy has become RetryPolicyM, allowing for policy logic to + consult the monad context. +* RetryPolicyM now takes a RetryStatus value. Use the function + rsIterNum to preserve existing behavior of RetryPolicy only + receiving the number. +* The monadic action now gets the RetryStatus on each try. Use const + if you don't need it. +* recoverAll explicitly does not handle the standard async + exceptions. Users are encouraged to do the same when using + recovering, as catching async exceptions can be hazardous. +* We no longer re-export (<>) from Monoid. +* Utility functions simulatePolicy and simulatePolicyPP have been + added which help predict how a policy will behave on each iteration. + +0.6 + +* Actions are now retried in the original masking state, while + handlers continue to run in `MaskedInterruptible` (@maoe) +* Added several tests confirming exception hierarchy semantics under +
commit ghc-retry for openSUSE:Factory
Hello community, here is the log from the commit of package ghc-retry for openSUSE:Factory checked in at 2015-11-26 17:03:05 Comparing /work/SRC/openSUSE:Factory/ghc-retry (Old) and /work/SRC/openSUSE:Factory/.ghc-retry.new (New) Package is "ghc-retry" Changes: New Changes file: --- /dev/null 2015-11-02 12:10:47.524024255 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-retry.new/ghc-retry.changes 2015-11-26 17:03:06.0 +0100 @@ -0,0 +1,5 @@ +--- +Thu Nov 19 13:26:04 UTC 2015 - mimi...@gmail.com + +- initial commit + New: ghc-retry.changes ghc-retry.spec retry-0.6.tar.gz Other differences: -- ++ ghc-retry.spec ++ # # spec file for package ghc-retry # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %global pkg_name retry %bcond_with tests Name: ghc-retry Version:0.6 Release:0 Summary:Retry combinators for monadic actions that may fail Group: System/Libraries License:BSD-3-Clause Url:https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros # Begin cabal-rpm deps: BuildRequires: ghc-data-default-class-devel BuildRequires: ghc-exceptions-devel BuildRequires: ghc-transformers-devel %if %{with tests} BuildRequires: ghc-HUnit-devel BuildRequires: ghc-QuickCheck-devel BuildRequires: ghc-hspec-devel BuildRequires: ghc-time-devel %endif # End cabal-rpm deps %description This package exposes combinators that can wrap arbitrary monadic actions. They run the action and potentially retry running it with some configurable delay for a configurable number of times. The purpose is to make it easier to work with IO and especially network IO actions that often experience temporary failure and warrant retrying of the original action. For example, a database query may time out for a while, in which case we should hang back for a bit and retry the query instead of simply raising an exception. %package devel Summary:Haskell %{pkg_name} library development files Group: Development/Libraries/Other Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name} = %{version}-%{release} %description devel This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} %build %ghc_lib_build %install %ghc_lib_install %check %if %{with tests} %cabal test %endif %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %defattr(-,root,root,-) %doc LICENSE %files devel -f %{name}-devel.files %defattr(-,root,root,-) %changelog