QuickCheck-2.12.6.1: 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 Source #
Constructors
Fields
Defined in Test.QuickCheck.Poly
Methods
(==) :: A -> A -> Bool #
(/=) :: A -> A -> Bool #
showsPrec :: Int -> A -> ShowS #
show :: A -> String #
showList :: [A] -> ShowS #
coarbitrary :: A -> Gen b -> Gen b Source #
arbitrary :: Gen A Source #
shrink :: A -> [A] Source #
Defined in Test.QuickCheck.Function
function :: (A -> b) -> A :-> b Source #
newtype B Source #
(==) :: B -> B -> Bool #
(/=) :: B -> B -> Bool #
showsPrec :: Int -> B -> ShowS #
show :: B -> String #
showList :: [B] -> ShowS #
coarbitrary :: B -> Gen b -> Gen b Source #
arbitrary :: Gen B Source #
shrink :: B -> [B] Source #
function :: (B -> b) -> B :-> b Source #
newtype C Source #
(==) :: C -> C -> Bool #
(/=) :: C -> C -> Bool #
showsPrec :: Int -> C -> ShowS #
show :: C -> String #
showList :: [C] -> ShowS #
coarbitrary :: C -> Gen b -> Gen b Source #
arbitrary :: Gen C Source #
shrink :: C -> [C] Source #
function :: (C -> b) -> C :-> b Source #
newtype OrdA Source #
(==) :: 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 Source #
arbitrary :: Gen OrdA Source #
shrink :: OrdA -> [OrdA] Source #
function :: (OrdA -> b) -> OrdA :-> b Source #
newtype OrdB Source #
(==) :: 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 Source #
arbitrary :: Gen OrdB Source #
shrink :: OrdB -> [OrdB] Source #
function :: (OrdB -> b) -> OrdB :-> b Source #
newtype OrdC Source #
(==) :: 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 Source #
arbitrary :: Gen OrdC Source #
shrink :: OrdC -> [OrdC] Source #
function :: (OrdC -> b) -> OrdC :-> b Source #