- Learn You a Haskell for Great Good! by Miran Lipovaca
- Real World Haskell by Bryan O'Sullivan, Don Stewart, and John Goerzen
- Type classes
Eq
is used for types that support equality testing. The functions its members implement are == and /=Ord
is for types that have an ordering. Ord covers all the standard comparing functions such as >, <, >= and <=Ordering
is a type that can beGT
,LT
orEQ
- Members of
Show
can be presented as strings Read
is sort of the opposite typeclass ofShow
Enum
members are sequentially ordered types — they can be enumerated. The main advantage of theEnum
typeclass is that we can use its types in list rangesBounded
members have an upper and a lower boundNum
is a numeric typeclass. To joinNum
, a type must already be friends withShow
andEq
Integral
is also a numeric typeclass.Integral
includes only integral (whole) numbers. In this typeclass areInt
andInteger
Floating
includes only floating point numbers, soFloat
andDouble
.