PréludeChargé par défaut — aucun import nécessaire.
Bounded — the least and greatest value of a type
Synopsis
interface Bounded a where
minBound : a
maxBound : a
A type with a least value (minBound) and a greatest value (maxBound). Together with Enum this lets you enumerate a whole type. Int/Nat are arbitrary-precision (unbounded), so they have no Bounded instance.
Instances : Bool,
Char,
Int16,
Int32,
Int64,
Int8,
Ordering,
Word16,
Word32,
Word64,
Word8