Patch for Debug.QuickCheck

I just noticed that while the check function and the Config type are exported from Debug.QuickCheck, there is no "default" config exported. I attached a patch that exports a 'defaultConfig' variable that's equal to the normal 'quick' config. /Martin

While we're talking about quickcheck, I noticed that the "vector" function mentioned in the manual is inconsistent with the one in the libraries: The manual [1] claims: Useful Generator Combinators If g is a generator for type t, then * two g generates a pair of ts, * three g generates a triple of ts, * four g generates a quadruple of ts, * vector n g generates a list of n ts. ... Whereas the type is actually: vector :: Arbitrary a => Int -> Gen [a] BTW, Martin's suggestion (defaultConfig) is useful for when I want to use "check" to run a particular number of tests (say 200 instead of the default 100) but I don't want to bother changing the other sensible values. peace, isaac [1] http://www.math.chalmers.se/~rjmh/QuickCheck/manual.html
participants (2)
-
Isaac Jones
-
Martin Sjögren