I got the following:
data Pair a =
Pair a a
And want to instantiate the Eq typeclass to it.
instance Eq (Pair a) where
(==) (Pair x x') = x == x'
I get the error:
Couldn't match expected type Pair a -> Bool' with actual type Bool'
What did I write wrong?