Hi Rebecca,
On page 220 you implement a typeclass for ordering and then you show an example of usage with Int
type, eg. compare (1 :: Int) (0 :: Int)
- this example fails for me. However, using Word8
works for it seems.
This is the error I get when using Int type:
λ: compare (1 :: Int) (0 :: Int)
<interactive>:20:1: error:
• No instance for (Ord Int) arising from a use of ‘compare’
• In the expression: compare (1 :: Int) (0 :: Int)
In an equation for ‘it’: it = compare (1 :: Int) (0 :: Int)