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

Chapter4

Synopsis

Documentation

maxThree :: Int -> Int -> Int -> Int Source #

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

prop_between1 :: Bool Source #

^^^^^^^^^^^^^^^^

sumSquares :: Integer -> Integer -> Integer Source #

^^^^^^^^^^^^^^

isEven :: Int -> Bool Source #

^^^^^^^^^^^^^^^^^^^^^^^^^^^

data Move Source #

Constructors

Rock 
Paper 
Scissors 

Instances

Instances details
Arbitrary Move Source # 
Instance details

Defined in Chapter4

Methods

arbitrary :: Gen Move #

shrink :: Move -> [Move] #

Show Move Source # 
Instance details

Defined in Chapter4

Methods

showsPrec :: Int -> Move -> ShowS #

show :: Move -> String #

showList :: [Move] -> ShowS #

Eq Move Source # 
Instance details

Defined in Chapter4

Methods

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

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

lose :: Move -> Move Source #

^^^^^^^^^^^^^^^^^^^^^^^^^^^

prop_fact :: Int -> Bool Source #

^^^^^^^^^^^^^^^^

whiteChess :: p1 -> p2 -> a Source #