packages feed

QuickCheck-safe 0.1 → 0.1.0.1

raw patch · 2 files changed

+4/−3 lines, 2 filesdep ~QuickCheckPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: QuickCheck

API changes (from Hackage documentation)

Files

QuickCheck-safe.cabal view
@@ -1,5 +1,5 @@ name:                QuickCheck-safe-version:             0.1+version:             0.1.0.1 synopsis:            Safe reimplementation of QuickCheck's core description:   QuickCheck-safe reimplements the quickCheck functionality with a pure@@ -32,7 +32,7 @@ library   hs-source-dirs:    src   build-depends:-    QuickCheck >= 2.8 && < 2.9,+    QuickCheck >= 2.7 && < 2.9,     base >= 4.6 && < 5   exposed-modules:     Test.QuickCheck.Safe
src/Test/QuickCheck/Safe.hs view
@@ -154,7 +154,8 @@  -- | Adjust testcase sizes. Cf. 'Test.QuickCheck.mapSize'. mapSize :: STestable prop => (Int -> Int) -> prop -> SProperty-mapSize f = MkSProperty . scale f . unSProperty . sProperty+mapSize f = MkSProperty . scale f . unSProperty . sProperty where+    scale f a = sized (\n -> resize (f n) a)  -- Other combinators that may be considered: