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

Chapter8

Synopsis

Documentation

data Move Source #

Constructors

Rock 
Paper 
Scissors 

Instances

Instances details
Arbitrary Move Source # 
Instance details

Defined in Chapter8

Methods

arbitrary :: Gen Move #

shrink :: Move -> [Move] #

Show Move Source # 
Instance details

Defined in Chapter8

Methods

showsPrec :: Int -> Move -> ShowS #

show :: Move -> String #

showList :: [Move] -> ShowS #

Eq Move Source # 
Instance details

Defined in Chapter8

Methods

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

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

type Strategy = [Move] -> Move Source #

randInt :: Integer -> Integer Source #

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

helloWorld :: IO () Source #

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

copy :: IO () Source #

type Tournament = ([Move], [Move]) Source #