Modifiers for test data.
These types do things such as restricting the kind of test data that can be generated. They can be pattern-matched on in properties as a stylistic alternative to using explicit quantification.
Examples:
-- Functions cannot be shown (but see "Test.QuickCheck.Function") prop_TakeDropWhile (Blind p) (xs :: [A]) = takeWhile p xs ++ dropWhile p xs == xs
prop_TakeDrop ('NonNegative' n) (xs :: ['A']) = take n xs ++ drop n xs == xs
-- cycle does not work for empty lists prop_Cycle ('NonNegative' n) ('NonEmpty' (xs :: ['A'])) = take n (cycle xs) == take n (xs ++ cycle xs)
-- Instead of 'forAll' 'orderedList' prop_Sort ('Ordered' (xs :: ['OrdA'])) = sort xs == xs
Blind x: as x, but x does not have to be in the Show class.
Fixed x: as x, but will not be shrunk.
Ordered xs: guarantees that xs is ordered.
access field getOrdered
NonEmpty xs: guarantees that xs is non-empty.
access field getNonEmpty
Positive x: guarantees that x > 0.
access field getPositive
NonZero x: guarantees that x != 0.
access field getNonZero
NonNegative x: guarantees that x >= 0.
access field getNonNegative
Shrink2 x: allows 2 shrinking steps at the same time when shrinking x
Smart _ x: tries a different order when shrinking.
inherited from Arbitrary.shrink
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Eq.!=
Function generated for derived instance.
Function generated for derived instance.
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Ord.<
inherited from Ord.<=
Function generated for derived instance.
inherited from Ord.>
inherited from Ord.>=
inherited from Ord.compare
inherited from Ord.max
inherited from Ord.min
inherited from Show.display
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
inherited from Show.showsub
inherited from Show.display
Function generated for derived instance.
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
Function generated for derived instance.
inherited from Show.display
Function generated for derived instance.
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
Function generated for derived instance.
inherited from Show.display
Function generated for derived instance.
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
Function generated for derived instance.
inherited from Show.display
Function generated for derived instance.
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
Function generated for derived instance.
inherited from Show.display
Function generated for derived instance.
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
Function generated for derived instance.
inherited from Show.display
Function generated for derived instance.
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
Function generated for derived instance.
inherited from Show.display
Function generated for derived instance.
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsPrec
Function generated for derived instance.
inherited from Show.display
inherited from Show.showChars
inherited from Show.showList
inherited from Show.showsub
NonEmptyList.has$getNonEmpty, NonNegative.has$getNonNegative, NonZero.has$getNonZero, OrderedList.has$getOrdered, Positive.has$getPositive
Ord_NonEmptyList.>=, Ord_NonEmptyList.<, Ord_NonEmptyList.<=, Ord_NonEmptyList.>
Ord_NonNegative.>=, Ord_NonNegative.<, Ord_NonNegative.<=, Ord_NonNegative.>
Ord_NonZero.>=, Ord_NonZero.<, Ord_NonZero.<=, Ord_NonZero.>
Ord_OrderedList.>=, Ord_OrderedList.<, Ord_OrderedList.<=, Ord_OrderedList.>
Ord_Positive.>=, Ord_Positive.<, Ord_Positive.<=, Ord_Positive.>
Ord_Shrink2.>=, Ord_Shrink2.<, Ord_Shrink2.<=, Ord_Shrink2.>
Show_NonEmptyList.showsub, Show_NonEmptyList.display, Show_NonEmptyList.show
Show_NonNegative.showsub, Show_NonNegative.display, Show_NonNegative.show
Show_NonZero.showsub, Show_NonZero.display, Show_NonZero.show
Show_OrderedList.showsub, Show_OrderedList.display, Show_OrderedList.show
Show_Positive.showsub, Show_Positive.display, Show_Positive.show
Show_Shrink2.showsub, Show_Shrink2.display, Show_Shrink2.show