[DHG_packages] 01/01: chell-quickcheck2: probably-incorrect patch to deal with QuickCheck 2.9 dropping "exhaustive". closes: #867470.

Clint Adams clint at moszumanska.debian.org
Mon Jul 10 16:56:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

clint pushed a commit to branch master
in repository DHG_packages.

commit f2852ecfcb7095209a4089d5c2ebfcdc8fb71706
Author: Clint Adams <clint at debian.org>
Date:   Mon Jul 10 12:55:39 2017 -0400

    chell-quickcheck2: probably-incorrect patch to deal with QuickCheck 2.9 dropping "exhaustive".  closes: #867470.
---
 p/haskell-chell-quickcheck2/debian/changelog               |  7 +++++++
 .../debian/patches/newer-quickcheck                        | 14 ++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/p/haskell-chell-quickcheck2/debian/changelog b/p/haskell-chell-quickcheck2/debian/changelog
index 3dd5ecf..f8abef0 100644
--- a/p/haskell-chell-quickcheck2/debian/changelog
+++ b/p/haskell-chell-quickcheck2/debian/changelog
@@ -1,3 +1,10 @@
+haskell-chell-quickcheck2 (0.2.5-8) unstable; urgency=medium
+
+  * Probably-incorrect patch to deal with QuickCheck 2.9 dropping
+    "exhaustive".  closes: #867470.
+
+ -- Clint Adams <clint at debian.org>  Mon, 10 Jul 2017 12:54:31 -0400
+
 haskell-chell-quickcheck2 (0.2.5-7) unstable; urgency=medium
 
   * Patch for newer QuickCheck.
diff --git a/p/haskell-chell-quickcheck2/debian/patches/newer-quickcheck b/p/haskell-chell-quickcheck2/debian/patches/newer-quickcheck
index c1aba8b..1bd3cbb 100644
--- a/p/haskell-chell-quickcheck2/debian/patches/newer-quickcheck
+++ b/p/haskell-chell-quickcheck2/debian/patches/newer-quickcheck
@@ -9,3 +9,17 @@
      , random
  
    exposed-modules:
+--- a/lib/Test/Chell/QuickCheck.hs
++++ b/lib/Test/Chell/QuickCheck.hs
+@@ -100,10 +100,4 @@
+ roundTo n m = (n `div` m) * m
+ 
+ maxDiscardedTests :: QuickCheck.Testable prop => QuickCheck.Args -> prop -> Int
+-#if MIN_VERSION_QuickCheck(2,5,0)
+-maxDiscardedTests args p = if QuickCheck.exhaustive p
+-	then QuickCheck.maxDiscardRatio args
+-	else QuickCheck.maxDiscardRatio args * QuickCheck.maxSuccess args
+-#else
+-maxDiscardedTests args _ = QuickCheck.maxDiscard args
+-#endif
++maxDiscardedTests args _ = QuickCheck.maxDiscardRatio args

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/DHG_packages.git



More information about the Pkg-haskell-commits mailing list