Copyright | (c) The University of Glasgow 1992-2002 |
---|---|
License | see libraries/base/LICENSE |
Maintainer | cvs-ghc@haskell.org |
Stability | stable |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe |
Language | Haskell2010 |
Data.Bounded
Description
The Bounded
class.
Since: base-4.22.0.0
Documentation
class Bounded a where 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
.
Instances
Instances details
Instance details
Defined in GHC.Internal.Foreign.C.Types
Instance details
Defined in GHC.Internal.Generics
Instance details
Defined in GHC.Internal.Generics
Instance details
Defined in GHC.Internal.Generics
Instance details
Defined in GHC.Internal.Generics
Instance details
Defined in GHC.Internal.Unicode
Instance details
Defined in Data.Semigroup
Swaps
and minBound
of the underlying type.maxBound
Since: base-4.14.0.0
Since: base-2.1
Since: base-2.1
Since: base-2.1
Since: base-2.1
Since: base-2.1
Since: base-2.1
Since: base-2.1
Since: base-2.1
Since: base-2.1
Since: base-2.1