QuickCheck-2.9.2: Automatic testing of Haskell programs
Test.QuickCheck.Poly
Description
Types to help with testing polymorphic properties.
Types A, B and C are newtype wrappers around Integer that implement Eq, Show, Arbitrary and CoArbitrary. Types OrdA, OrdB and OrdC also implement Ord and Num.
A
B
C
newtype
Integer
Eq
Show
Arbitrary
CoArbitrary
OrdA
OrdB
OrdC
Ord
Num
See also Test.QuickCheck.All for an automatic way of testing polymorphic properties.
newtype A #
Constructors
Fields
Instances
Methods
(==) :: A -> A -> Bool #
(/=) :: A -> A -> Bool #
showsPrec :: Int -> A -> ShowS #
show :: A -> String #
showList :: [A] -> ShowS #
coarbitrary :: A -> Gen b -> Gen b #
arbitrary :: Gen A #
shrink :: A -> [A] #
function :: (A -> b) -> A :-> b #
newtype B #
(==) :: B -> B -> Bool #
(/=) :: B -> B -> Bool #
showsPrec :: Int -> B -> ShowS #
show :: B -> String #
showList :: [B] -> ShowS #
coarbitrary :: B -> Gen b -> Gen b #
arbitrary :: Gen B #
shrink :: B -> [B] #
function :: (B -> b) -> B :-> b #
newtype C #
(==) :: C -> C -> Bool #
(/=) :: C -> C -> Bool #
showsPrec :: Int -> C -> ShowS #
show :: C -> String #
showList :: [C] -> ShowS #
coarbitrary :: C -> Gen b -> Gen b #
arbitrary :: Gen C #
shrink :: C -> [C] #
function :: (C -> b) -> C :-> b #
newtype OrdA #
(==) :: OrdA -> OrdA -> Bool #
(/=) :: OrdA -> OrdA -> Bool #
(+) :: OrdA -> OrdA -> OrdA #
(-) :: OrdA -> OrdA -> OrdA #
(*) :: OrdA -> OrdA -> OrdA #
negate :: OrdA -> OrdA #
abs :: OrdA -> OrdA #
signum :: OrdA -> OrdA #
fromInteger :: Integer -> OrdA #
compare :: OrdA -> OrdA -> Ordering #
(<) :: OrdA -> OrdA -> Bool #
(<=) :: OrdA -> OrdA -> Bool #
(>) :: OrdA -> OrdA -> Bool #
(>=) :: OrdA -> OrdA -> Bool #
max :: OrdA -> OrdA -> OrdA #
min :: OrdA -> OrdA -> OrdA #
showsPrec :: Int -> OrdA -> ShowS #
show :: OrdA -> String #
showList :: [OrdA] -> ShowS #
coarbitrary :: OrdA -> Gen b -> Gen b #
arbitrary :: Gen OrdA #
shrink :: OrdA -> [OrdA] #
function :: (OrdA -> b) -> OrdA :-> b #
newtype OrdB #
(==) :: OrdB -> OrdB -> Bool #
(/=) :: OrdB -> OrdB -> Bool #
(+) :: OrdB -> OrdB -> OrdB #
(-) :: OrdB -> OrdB -> OrdB #
(*) :: OrdB -> OrdB -> OrdB #
negate :: OrdB -> OrdB #
abs :: OrdB -> OrdB #
signum :: OrdB -> OrdB #
fromInteger :: Integer -> OrdB #
compare :: OrdB -> OrdB -> Ordering #
(<) :: OrdB -> OrdB -> Bool #
(<=) :: OrdB -> OrdB -> Bool #
(>) :: OrdB -> OrdB -> Bool #
(>=) :: OrdB -> OrdB -> Bool #
max :: OrdB -> OrdB -> OrdB #
min :: OrdB -> OrdB -> OrdB #
showsPrec :: Int -> OrdB -> ShowS #
show :: OrdB -> String #
showList :: [OrdB] -> ShowS #
coarbitrary :: OrdB -> Gen b -> Gen b #
arbitrary :: Gen OrdB #
shrink :: OrdB -> [OrdB] #
function :: (OrdB -> b) -> OrdB :-> b #
newtype OrdC #
(==) :: OrdC -> OrdC -> Bool #
(/=) :: OrdC -> OrdC -> Bool #
(+) :: OrdC -> OrdC -> OrdC #
(-) :: OrdC -> OrdC -> OrdC #
(*) :: OrdC -> OrdC -> OrdC #
negate :: OrdC -> OrdC #
abs :: OrdC -> OrdC #
signum :: OrdC -> OrdC #
fromInteger :: Integer -> OrdC #
compare :: OrdC -> OrdC -> Ordering #
(<) :: OrdC -> OrdC -> Bool #
(<=) :: OrdC -> OrdC -> Bool #
(>) :: OrdC -> OrdC -> Bool #
(>=) :: OrdC -> OrdC -> Bool #
max :: OrdC -> OrdC -> OrdC #
min :: OrdC -> OrdC -> OrdC #
showsPrec :: Int -> OrdC -> ShowS #
show :: OrdC -> String #
showList :: [OrdC] -> ShowS #
coarbitrary :: OrdC -> Gen b -> Gen b #
arbitrary :: Gen OrdC #
shrink :: OrdC -> [OrdC] #
function :: (OrdC -> b) -> OrdC :-> b #