File ghc-QuickCheck.changes of Package ghc-QuickCheck
448
1
-------------------------------------------------------------------
2
Wed May 31 15:38:24 UTC 2023 - Peter Simons <psimons@suse.com>
3
4
- Update QuickCheck to version 2.14.3.
5
QuickCheck 2.14.3 (released 2023-05-31)
6
* Add shrinkBoundedEnum (thanks to Jonathan Knowles)
7
* Add discardAfter for discarding tests on timeout (thanks to Justus Sagemüller)
8
* Add assertWith for monadic testing (thanks to KtorZ)
9
* Add functionElements to Test.QuickCheck.Function (thanks to Oleg Grenrus)
10
* Add Arbitrary instance for Newline (thanks to Daniel Bramucci)
11
* Improve Arbitrary instances for Float and Double (thanks to Oleg Grenrus)
12
* Improve arbitrarySizedFractional (thanks to Bodigrim)
13
* Fix shrinkRealFrac and shrinkDecimal, which were broken
14
* Speed up printing of progress messages (thanks to Bodigrim)
15
* Add COMPLETE pragmas for Fn and family (thanks to ilkecan)
16
* Make templateHaskell flag manual (thanks to Oleg Grenrus)
17
18
-------------------------------------------------------------------
19
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
20
21
- disable %{ix86} build
22
23
-------------------------------------------------------------------
24
Sun Nov 15 12:26:19 UTC 2020 - psimons@suse.com
25
26
- Update QuickCheck to version 2.14.2.
27
Upstream has edited the change log file since the last release in
28
a non-trivial way, i.e. they did more than just add a new entry
29
at the top. You can review the file at:
30
http://hackage.haskell.org/package/QuickCheck-2.14.2/src/changelog
31
32
-------------------------------------------------------------------
33
Tue Aug 18 10:43:50 UTC 2020 - Peter Simons <psimons@suse.com>
34
35
- Replace %setup -q with the more modern %autosetup macro.
36
37
-------------------------------------------------------------------
38
Mon Jul 6 13:51:01 UTC 2020 - psimons@suse.com
39
40
- Update QuickCheck to version 2.14.1.
41
Upstream has edited the change log file since the last release in
42
a non-trivial way, i.e. they did more than just add a new entry
43
at the top. You can review the file at:
44
http://hackage.haskell.org/package/QuickCheck-2.14.1/src/changelog
45
46
-------------------------------------------------------------------
47
Tue Jun 9 09:10:57 UTC 2020 - psimons@suse.com
48
49
- Update QuickCheck to version 2.14.
50
QuickCheck 2.14 (release 2020-03-28)
51
* QuickCheck is now much faster at generating test data!
52
As a result, many properties can now be tested a lot faster;
53
the examples distributed with QuickCheck run about twice as
54
fast as before, for example. Of course, your mileage may vary.
55
56
The reason for this is that there are now specialised versions
57
of the 'choose' combinator for various types. These are:
58
chooseInt, chooseInteger, chooseBoundedIntegral, and chooseEnum.
59
These combinators are identical to 'choose' but much faster.
60
All QuickCheck combinators, with the exception of 'choose'
61
itself, use the new combinators behind the scenes.
62
63
You should see a speedup without doing anything, but to get a
64
further speedup, consider replacing any uses of 'choose' in your
65
own generators with the new combinators.
66
67
We are hoping that future releases of the 'random' library may
68
speed up 'choose', in which case these combinators may no longer
69
be needed.
70
71
Thanks to Oleg Grenrus for suggesting to bypass 'choose' for
72
random number generation, and providing the appropriate
73
primitive in his 'splitmix' random number library.
74
75
* Smaller changes and bugfixes:
76
- RecursivelyShrink and GSubterms are exported from
77
Test.QuickCheck.Test (thanks to Tom Mortiboy).
78
- Don't generate invalid unicode characters
79
(thanks to Boris Stepanov).
80
- When a call to 'within' fails, include the duration of the
81
timeout in the failure report (thanks to William Rusnack).
82
- In Gen, avoid splitting the seed in the implementation of
83
>>, *> and <- (thanks to David Feuer).
84
- Fix a couple of bugs with shrinking of floating-point
85
numbers.
86
- Export functionMapWith, functionEitherWith and
87
functionPairWith from Test.QuickCheck.Function
88
(thanks to Oleg Grenrus).
89
- Remove redundant RealFloat constraint from
90
Arbitrary/CoArbitrary instances for Complex
91
(thanks to Bodigrim).
92
93
-------------------------------------------------------------------
94
Fri Nov 8 16:14:29 UTC 2019 - Peter Simons <psimons@suse.com>
95
96
- Drop obsolete group attributes.
97
98
-------------------------------------------------------------------
99
Mon Jul 1 02:02:25 UTC 2019 - psimons@suse.com
100
101
- Update QuickCheck to version 2.13.2.
102
Upstream has edited the change log file since the last release in
103
a non-trivial way, i.e. they did more than just add a new entry
104
at the top. You can review the file at:
105
http://hackage.haskell.org/package/QuickCheck-2.13.2/src/changelog
106
107
-------------------------------------------------------------------
108
Tue Jun 11 14:29:07 UTC 2019 - Peter Simons <psimons@suse.com>
109
110
- Update Cabal file for more accurate build dependencies.
111
112
-------------------------------------------------------------------
113
Sat Mar 30 19:21:39 UTC 2019 - psimons@suse.com
114
115
- Update QuickCheck to version 2.13.1.
116
QuickCheck 2.13.1 (release 2019-03-29)
117
* A couple of bug fixes
118
119
QuickCheck 2.13 (released 2019-03-26)
120
* Properties with multiple arguments now shrink better.
121
Previously, the first argument was shrunk, then the second, and
122
so on. Now, the arguments are shrunk as a whole, so shrink steps
123
for different arguments can be interleaved.
124
125
* New features:
126
- New modifiers Negative and NonPositive
127
- A Testable instance for Maybe prop (where Nothing means 'discard
128
the test case')
129
* Dependencies on C code removed:
130
- Use splitmix instead of tf-random for random number generation
131
- Remove dependency on 'erf' package
132
* Small changes:
133
- Say 'Falsified' instead of 'Falsifiable' when a property fails
134
* Compatibility improvements:
135
- Explicitly derive instance Typeable Args
136
- Lower bound on deepseq
137
- A script for building Hugs packages
138
139
-------------------------------------------------------------------
140
Wed Oct 10 19:24:03 UTC 2018 - psimons@suse.com
141
142
- Update QuickCheck to version 2.12.6.1.
143
QuickCheck 2.12.6 (released 2018-10-02)
144
* Make arbitrarySizedBoundedIntegral handle huge sizes correctly.
145
* Add changelog for QuickCheck 2.12.5 :)
146
147
QuickCheck 2.12.5 (released 2018-09-30)
148
* Export isSuccess from Test.QuickCheck.
149
* Export CoArbitrary even when generics are disabled (bugfix).
150
* Fix bug in shrinkDecimal.
151
* Include Test.QuickCheck.Gen in exposed modules for Haddock.
152
153
QuickCheck 2.12.3, 2.12.4 (released 2018-09-12)
154
* Shrinking for Float and Decimal now works by reducing the number
155
of digits in the number. The new function shrinkDecimal
156
implements this shrinking behaviour.
157
* Shrinking for Rational now tries to make the numerator and
158
denominator of the number smaller. Previously it tried to reduce
159
the magnitude of the number.
160
161
QuickCheck 2.12.2 (released 2018-09-10)
162
* Fix infinite shrinking loop for fractional types.
163
* Add SortedList modifier.
164
165
QuickCheck 2.12.1 (released 2018-09-06)
166
* Fix bug in 'classify'.
167
168
QuickCheck 2.12 (released 2018-09-03)
169
* Silently breaking changes!
170
- The Arbitrary instance for Word now generates only small
171
values, the same as Int
172
- cover no longer causes a property failure if coverage is
173
insufficient. It just prints a warning. (But see next item!)
174
175
* Overhaul of label/cover family of combinators:
176
- New property combinator checkCoverage, which checks coverage
177
requirements in a statistically sound way, and *does* fail if
178
they are not met.
179
- Order of arguments to cover swapped, to make it easier to
180
switch between classify and cover
181
- New combinators tabulate and coverTable, for reporting test
182
case distribution more flexibly than label.
183
- When label is called multiple times in a property, each call
184
produces a separate table of frequencies.
185
186
* New functions:
187
- (=/=): like (/=), but prints a counterexample
188
(thanks to tom-bop)
189
- forAllShow/forAllShrinkShow: quantification using an
190
explicit show function (thanks to Stevan Andjelkovic)
191
- forAllBlind/forAllShrinkBlind: quantification without
192
printing anything
193
- verboseShrinking: see how a counterexample is shrunk
194
- labelledExamples: given a property which uses label,
195
generate an example test case for each label
196
- idempotentIOProperty: a variant of ioProperty which shrinks
197
better but only works for idempotent I/O actions
198
199
* Other improvements:
200
- MonadFix Gen instance (thanks to Jon Fowler)
201
- Rational numbers shrink using continued fractions
202
(thanks to Justus Sagemüller)
203
- Function instances for Const, Identity, and the types in
204
Data.Monoid; instance Functor Fun (thanks to Erik Schnetter
205
and Xia Li-yao)
206
- More of Test.QuickCheck.Function is exported from
207
Test.QuickCheck
208
- Semantics of .||. changed to improve short-circuiting:
209
if the left argument's precondition is false, the right
210
argument is not evaluated and the whole disjunction is
211
considered to have a false precondition
212
- Bug fix: suchThatMaybe always increased size to at least 1
213
214
* Miscellaneous API changes:
215
- Result type has changed a bit:
216
- InsufficientCovered constructor is gone
217
- Type of labels has changed
218
- New fields classes, tables
219
220
-------------------------------------------------------------------
221
Wed Jul 18 14:26:10 UTC 2018 - psimons@suse.com
222
223
- Cosmetic: replace tabs with blanks, strip trailing white space,
224
and update copyright headers with spec-cleaner.
225
226
-------------------------------------------------------------------
227
Mon May 14 17:02:11 UTC 2018 - psimons@suse.com
228
229
- Update QuickCheck to version 2.11.3.
230
* New features:
231
- InfiniteList modifier generates infinite lists and shows
232
only the relevant part.
233
- applyArbitrary2/3/4 for applying a function to random
234
arguments.
235
- Template Haskell function allProperties returns all
236
properties in a module.
237
* Applicative Gen instances do less splitting.
238
* Property now has a Typeable instance.
239
* (===) now prints correct output when the property is true.
240
* Test.QuickCheck now exports Fun constructor.
241
* verboseCheck output is now slightly less confusing.
242
* Arbitrary instances for Foreign.C.Types are available in more
243
GHC versions.
244
* Fixed a bug where withMaxSuccess didn't adjust the allowed
245
number of discarded tests.
246
* Remove quadratic behaviour in terminal output.
247
* New combinators:
248
- withMaxSuccess sets the maximum number of test cases for a property.
249
- shrinkMap/shrinkMapBy are helpers for defining shrink functions.
250
- total checks that a value is non-crashing.
251
- suchThatMap is similar to 'suchThat'
252
but takes a Maybe-returning function instead of a predicate.
253
- getSize returns the current test case size.
254
* Random strings and characters now include Unicode characters by
255
default. To generate only ASCII characters, use the new
256
ASCIIString modifier or arbitraryASCIIChar generator.
257
The following modifiers and generators also control the
258
kind of strings generated: UnicodeString, PrintableString,
259
arbitraryUnicodeChar, arbitraryPrintableChar.
260
* QuickCheck no longer catches asynchronous exceptions, which
261
means that pressing ctrl-C will now cancel testing without
262
printing a counterexample. If you are debugging an infinite loop,
263
please use the 'within' combinator or 'verboseCheck' instead.
264
('within' is better as it allows the counterexample to be
265
shrunk.)
266
* Much of Test.QuickCheck.Function (showable random functions)
267
is now exported from Test.QuickCheck.
268
- Test.QuickCheck.Function now defines functions and
269
pattern synonyms which simplify testing functions of
270
more than one argument: apply2, apply3, Fn2, Fn3.
271
* New typeclasses Arbitrary1 and Arbitrary2 which lift Arbitrary
272
to unary/binary type constructors, like in Data.Functor.Classes.
273
* Some Arbitrary instances have been removed: NonEmpty, Natural.
274
This is because they resulted in a lot of extra dependencies.
275
You can now find them in the quickcheck-instances package.
276
Alternatively, use the NonEmptyList and NonNegative modifiers.
277
* New Arbitrary instances for the following types: Proxy, ExitCode,
278
WrappedMonad, WrappedArrow, QCGen, and the types in
279
Foreign.C.Types and Data.Functor.{Product,Compose}.
280
Also a Function instance for Word.
281
* The functions in Test.QuickCheck.Monadic which take an argument
282
of type PropertyM m a now expect that 'a' to be Testable, and test it.
283
To reduce breakage from this, () is now an instance of Testable which
284
always succeeds.
285
- PropertyM now has a MonadFail instance on recent GHCs.
286
Furthermore, the constraints on some instances were loosened.
287
* Miscellaneous API changes:
288
- Result now returns the counterexample as a list of strings.
289
See the "failingTestCase" field.
290
- Args now has a `maxShrinks` argument, the maximum number of
291
shrinks to try before giving up shrinking.
292
- The 'labels' field of Result now encodes frequencies as Doubles
293
rather than Ints.
294
* Bugfixes:
295
- 'Test.QuickCheck.Function', 'Test.QuickCheck.Poly', and
296
'Test.QuickCheck.Monadic' are now Safe modules.
297
- Result.theException and Result.reason were taken from
298
the pre-shrunk counterexample, not the shrunk one.
299
- The Testable Property instance improperly used 'again'.
300
- Gen.>>= is strict in the result of split, fixing a space leak.
301
- within now gives a better error message on timeout
302
* Some more examples and links have been added to the documentation.
303
304
-------------------------------------------------------------------
305
Sun Feb 12 14:13:28 UTC 2017 - psimons@suse.com
306
307
- Update to version 2.9.2 with cabal2obs.
308
309
-------------------------------------------------------------------
310
Sun Jul 10 17:17:25 UTC 2016 - psimons@suse.com
311
312
- Update to version 2.8.2 revision 0 with cabal2obs.
313
314
-------------------------------------------------------------------
315
Thu May 26 06:22:16 UTC 2016 - mimi.vx@gmail.com
316
317
- update to 2.8.2
318
* GHC 8 support
319
* Add Arbitrary and CoArbitrary instances for types in containers package
320
* Improve speed of shuffle combinator
321
* Only print to stderr if it's a terminal.
322
* Small changes: slightly improve documentation, remove redundant constraints
323
from some functions' types, small improvements to Test.QuickCheck.All.
324
325
-------------------------------------------------------------------
326
Tue May 12 14:26:30 UTC 2015 - mimi.vx@gmail.com
327
328
- update to 2.8.1
329
* Fix bug where exceptions thrown printing counterexamples weren't
330
being caught when terminal output was disabled
331
* Don't export Test.QuickCheck.Property.result
332
* Support for GHC 7.10
333
* Arbitrary instance for Natural
334
* New generators shuffle and sublistOf
335
* Support for generic coarbitrary
336
* When using the cover combinator, insufficient coverage now
337
causes the property to fail
338
* Test.QuickCheck.Function: new pattern synonym Fn
339
* genericShrink no longer requires Typeable
340
* Result has a new constructor InsufficientCoverage
341
* resize throws an error if the size is negative
342
* Fix memory leaks
343
* Exceptions thrown by callbacks now cause the test to fail
344
* Fixed a bug where the cover combinator wouldn't give a
345
warning if coverage was 0%
346
347
-------------------------------------------------------------------
348
Fri Apr 10 13:41:57 UTC 2015 - mimi.vx@gmail.com
349
350
- update to 2.7.6
351
* Add annotations for Safe Haskell.
352
* Fix bug in cabal file which broke cabal test
353
* Fixed bug - the Small modifier didn't work on unsigned types
354
* Changed arbitrarySizedIntegral to have an Integral constraint
355
instead of just Num
356
* New genericShrink function provides generic shrinking with GHC.
357
* New combinator x === y: fails if x /= y, but also prints their values
358
* New function generate :: Gen a -> IO a for running a generator.
359
* New combinators infiniteList and infiniteListOf for generating infinite lists.
360
* Several combinators added to the main Test.QuickCheck module which
361
were previously languishing in other modules. Of particular interest:
362
quickCheckAll, ioProperty.
363
* New combinators delay and capture which can be used (unsafely!)
364
to reuse the random number seed. Useful for generating
365
polymorphic (rank-2) values.
366
* A new Discard data type and a Testable instance for discarding test cases.
367
* All modifiers now have Functor instances and accessor functions.
368
* Pressing ctrl-C during shrinking now shows the last failed
369
test case, rather than the current shrinking candidate.
370
* Experimental support for UHC. You will need the latest version of Cabal from git.
371
* Better distribution of test data:
372
* The Int generator now only generates fairly small numbers.
373
* The new Small and Large modifiers control the distribution of integers
374
(Small generates small numbers, Large from the whole range).
375
* Floating-point numbers shrink better.
376
* Improved random number generation:
377
* QuickCheck now uses TFGen rather than StdGen on newer versions
378
of GHC, because StdGen's random numbers aren't always random.
379
* 'variant' now uses a prefix code. This should prevent some
380
potential bananaskins with coarbitrary.
381
* API changes:
382
* The Gen monad now uses an abstract type QCGen rather than StdGen.
383
* The Result type now returns the thrown exception and number
384
of failed shrink attempts.
385
* Property is now a newtype rather than Gen Prop as it was before.
386
* promote is moved into the new module Test.QuickCheck.Gen.Unsafe.
387
* 'printTestCase' is deprecated - its new name is 'counterexample'
388
* 'morallyDubiousIOProperty' is deprecated - its new name is
389
'ioProperty', no moral judgement involved :)
390
391
-------------------------------------------------------------------
392
Tue Sep 2 08:30:25 UTC 2014 - peter.trommler@ohm-hochschule.de
393
394
- regenerate spec file
395
396
-------------------------------------------------------------------
397
Sat Aug 23 00:00:20 UTC 2014 - peter.trommler@ohm-hochschule.de
398
399
- enable PowerPC builds
400
401
-------------------------------------------------------------------
402
Mon May 6 11:31:28 UTC 2013 - peter.trommler@ohm-hochschule.de
403
404
- update to 2.6 from upstream
405
* convenience instances for up to 7-tupels
406
* stderr unbuffered
407
* flag to say whether test case was interrupted
408
- BR ghc-extensible-exceptions-devel no longer required
409
- more transparent packaging (fewer macros)
410
411
-------------------------------------------------------------------
412
Mon Jan 7 09:07:46 UTC 2013 - peter.trommler@ohm-hochschule.de
413
414
- expand macro in name tag to help source validator
415
416
-------------------------------------------------------------------
417
Sat Nov 17 14:15:15 UTC 2012 - peter.trommler@ohm-hochschule.de
418
419
- make service localonly for Factory submission
420
421
-------------------------------------------------------------------
422
Tue Oct 2 15:59:59 UTC 2012 - peter.trommler@ohm-hochschule.de
423
424
- update to 2.5.1.1 from upstream (no changelog)
425
- required by Haskell Platform 2012.4.0.0
426
427
-------------------------------------------------------------------
428
Sun Jun 3 17:36:02 UTC 2012 - peter.trommler@ohm-hochschule.de
429
430
- update to 2.4.2 from upstream (no changelog)
431
- required by Haskell Platform 2012.2.0.0
432
433
-------------------------------------------------------------------
434
Thu Feb 23 13:58:27 UTC 2012 - peter.trommler@ohm-hochschule.de
435
436
- Added BuildRoot for sle11-sp1
437
438
-------------------------------------------------------------------
439
Thu Dec 29 11:52:59 UTC 2011 - peter.trommler@ohm-hochschule.de
440
441
- Enable hscolour
442
- Add rpmlinrc
443
444
-------------------------------------------------------------------
445
Mon Dec 5 15:15:52 UTC 2011 - peter.trommler@ohm-hochschule.de
446
447
- Initial packaging.
448