Craft3e-0.2.0.1: Code for Haskell: the Craft of Functional Programming, 3rd ed.
Safe HaskellNone
LanguageHaskell2010

QC

Documentation

data Card Source #

Constructors

Card Int String 

Instances

Instances details
Arbitrary Card Source # 
Instance details

Defined in QC

Methods

arbitrary :: Gen Card #

shrink :: Card -> [Card] #

Show Card Source # 
Instance details

Defined in QC

Methods

showsPrec :: Int -> Card -> ShowS #

show :: Card -> String #

showList :: [Card] -> ShowS #

Eq Card Source # 
Instance details

Defined in QC

Methods

(==) :: Card -> Card -> Bool #

(/=) :: Card -> Card -> Bool #

data Info Source #

Constructors

Number Int 
Email String 

Instances

Instances details
Arbitrary Info Source # 
Instance details

Defined in QC

Methods

arbitrary :: Gen Info #

shrink :: Info -> [Info] #

Show Info Source # 
Instance details

Defined in QC

Methods

showsPrec :: Int -> Info -> ShowS #

show :: Info -> String #

showList :: [Info] -> ShowS #

Eq Info Source # 
Instance details

Defined in QC

Methods

(==) :: Info -> Info -> Bool #

(/=) :: Info -> Info -> Bool #

data List a Source #

Constructors

Empty 
Cons a (List a) 

Instances

Instances details
Arbitrary a => Arbitrary (List a) Source # 
Instance details

Defined in QC

Methods

arbitrary :: Gen (List a) #

shrink :: List a -> [List a] #

Show a => Show (List a) Source # 
Instance details

Defined in QC

Methods

showsPrec :: Int -> List a -> ShowS #

show :: List a -> String #

showList :: [List a] -> ShowS #

Eq a => Eq (List a) Source # 
Instance details

Defined in QC

Methods

(==) :: List a -> List a -> Bool #

(/=) :: List a -> List a -> Bool #

data Expr Source #

Constructors

Lit Integer 
Add Expr Expr 
Sub Expr Expr 

Instances

Instances details
Arbitrary Expr Source # 
Instance details

Defined in QC

Methods

arbitrary :: Gen Expr #

shrink :: Expr -> [Expr] #

Show Expr Source # 
Instance details

Defined in QC

Methods

showsPrec :: Int -> Expr -> ShowS #

show :: Expr -> String #

showList :: [Expr] -> ShowS #

Eq Expr Source # 
Instance details

Defined in QC

Methods

(==) :: Expr -> Expr -> Bool #

(/=) :: Expr -> Expr -> Bool #

prop_map :: (Int -> Int) -> (Int -> Int) -> [Int] -> Bool Source #