hask.lang.typeclasses – The standard type classes¶
-
class
hask.lang.typeclasses.Show[source]¶ Conversion of values to readable strings.
Attributes:
__str__show
Minimal complete definition:
show
-
class
hask.lang.typeclasses.Eq[source]¶ The Eq class defines equality (==) and inequality (!=).
Attributes:
__eq____ne__
Minimal complete definition:
eq
-
class
hask.lang.typeclasses.Bounded[source]¶ The Bounded class is used to name the upper and lower limits of a type. Ord is not a superclass of Bounded since types that are not totally ordered may also have upper and lower bounds.
The Bounded class may be derived for any enumeration type; minBound is the first constructor listed in the data declaration and maxBound is the last. Bounded may also be derived for single-constructor datatypes whose constituent types are in Bounded.
Attributes:
minBoundmaxBound
Minimal complete definition:
minBoundmaxBound
-
class
hask.lang.typeclasses.Ord[source]¶ The Ord class is used for totally ordered datatypes.
Instances of Ord can be derived for any user-defined datatype whose constituent types are in Ord. The declared order of the constructors in the data declaration determines the ordering in derived Ord instances. The Ordering datatype allows a single comparison to determine the precise ordering of two objects.
Dependencies:
Attributes:
__lt____le____gt____ge__
Minimal complete definition:
lt