tasty-quickcheck 0.8.3.1 → 0.8.3.2
raw patch · 3 files changed
+30/−4 lines, 3 filesdep +randomdep ~QuickCheckdep ~tasty
Dependencies added: random
Dependency ranges changed: QuickCheck, tasty
Files
- CHANGELOG.md +6/−0
- Test/Tasty/QuickCheck.hs +12/−2
- tasty-quickcheck.cabal +12/−2
CHANGELOG.md view
@@ -1,6 +1,12 @@ Changes ======= +Version 0.8.3.2+---------------++* Put correct lower version bound on tasty+* Allow use of older QuickCheck for HP compatibility+ Version 0.8.3.1 ---------------
Test/Tasty/QuickCheck.hs view
@@ -1,5 +1,5 @@ -- | This module allows to use QuickCheck properties in tasty.-{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable #-}+{-# LANGUAGE CPP, GeneralizedNewtypeDeriving, DeriveDataTypeable #-} module Test.Tasty.QuickCheck ( testProperty , QuickCheckTests(..)@@ -33,13 +33,19 @@ , verboseCheckResult , verbose )-import Test.QuickCheck.Random (QCGen)+ import Data.Typeable import Data.Proxy import Data.List import Text.Printf import Control.Applicative +#if MIN_VERSION_QuickCheck(2,7,0)+import Test.QuickCheck.Random (QCGen)+#else+import System.Random (StdGen)+#endif+ newtype QC = QC QC.Property deriving Typeable @@ -52,7 +58,11 @@ deriving (Num, Ord, Eq, Real, Enum, Integral, Typeable) -- | Replay a previous test using a replay token+#if MIN_VERSION_QuickCheck(2,7,0) newtype QuickCheckReplay = QuickCheckReplay (Maybe (QCGen, Int))+#else+newtype QuickCheckReplay = QuickCheckReplay (Maybe (StdGen, Int))+#endif deriving (Typeable) -- | If a test case fails unexpectedly, show the replay token
tasty-quickcheck.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: tasty-quickcheck-version: 0.8.3.1+version: 0.8.3.2 synopsis: QuickCheck support for the Tasty test framework. description: QuickCheck support for the Tasty test framework. license: MIT@@ -22,11 +22,21 @@ location: git://github.com/feuerbach/tasty.git subdir: quickcheck +flag old-QuickCheck+ description: Use Quick-Check < 2.7+ default: False+ library exposed-modules: Test.Tasty.QuickCheck -- other-modules: other-extensions: GeneralizedNewtypeDeriving, DeriveDataTypeable- build-depends: base == 4.*, tasty >= 0.8, QuickCheck >= 2.7 && < 3, tagged+ build-depends: base == 4.*, tagged, tasty >= 0.10.1++ if flag(old-QuickCheck)+ build-depends: QuickCheck >= 2.5 && < 2.7, random+ else+ build-depends: QuickCheck >= 2.7 && < 3+ -- hs-source-dirs: default-language: Haskell2010