Early versions of this type system had problems with equality
What's the type of ==?
Something like a -> a -> Bool
Except that a must not be a function type
Haskell solves this problem:
(Eq a) => a -> a -> Bool
And function types are not instances of Eq
Similarly, ordered types should be declared instances of Ord
Values can be compared with <, >, etc.
|Next||Copyright © 1999,2008 Mark Dominus|