W3cubDocs

/Haskell 9

Data.Bounded

Copyright (c) The University of Glasgow 1992-2002
License see libraries/base/LICENSE
Maintainer [email protected]
Stability stable
Portability non-portable (GHC extensions)
Safe Haskell Safe
Language Haskell2010

Description

The Bounded class.

Since: base-4.22.0.0

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.

Methods

minBound :: a Source

maxBound :: a Source

Instances
Instances details
Bounded ByteOrder Source

Since: base-4.11.0.0

Instance details

Defined in GHC.Internal.ByteOrder

Bounded All Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Bounded Any Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Bounded CBool Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CChar Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CInt Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CIntMax Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CIntPtr Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CLLong Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CLong Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CPtrdiff Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CSChar Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CShort Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CSigAtomic Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CSize Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CUChar Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CUInt Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CUIntMax Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CUIntPtr Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CULLong Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CULong Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CUShort Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded CWchar Source
Instance details

Defined in GHC.Internal.Foreign.C.Types

Bounded IntPtr Source
Instance details

Defined in GHC.Internal.Foreign.Ptr

Bounded WordPtr Source
Instance details

Defined in GHC.Internal.Foreign.Ptr

Bounded Associativity Source

Since: base-4.9.0.0

Instance details

Defined in GHC.Internal.Generics

Bounded DecidedStrictness Source

Since: base-4.9.0.0

Instance details

Defined in GHC.Internal.Generics

Bounded SourceStrictness Source

Since: base-4.9.0.0

Instance details

Defined in GHC.Internal.Generics

Bounded SourceUnpackedness Source

Since: base-4.9.0.0

Instance details

Defined in GHC.Internal.Generics

Bounded Int16 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Bounded Int32 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Bounded Int64 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Bounded Int8 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Int

Bounded Extension Source
Instance details

Defined in GHC.Internal.LanguageExtensions

Bounded CBlkCnt Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CBlkSize Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CClockId Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CDev Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CFsBlkCnt Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CFsFilCnt Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CGid Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CId Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CIno Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CKey Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CMode Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CNfds Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CNlink Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded COff Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CPid Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CRLim Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CSocklen Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CSsize Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CTcflag Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded CUid Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded Fd Source
Instance details

Defined in GHC.Internal.System.Posix.Types

Bounded GeneralCategory Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Unicode

Bounded Word16 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Word

Bounded Word32 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Word

Bounded Word64 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Word

Bounded Word8 Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Word

Bounded Ordering Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Bounded () Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: () Source

maxBound :: () Source

Bounded Bool Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Bounded Char Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Bounded Int Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Bounded Levity Source

Since: base-4.16.0.0

Instance details

Defined in GHC.Internal.Enum

Bounded VecCount Source

Since: base-4.10.0.0

Instance details

Defined in GHC.Internal.Enum

Bounded VecElem Source

Since: base-4.10.0.0

Instance details

Defined in GHC.Internal.Enum

Bounded Word Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Bounded a => Bounded (First a) Source

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Bounded a => Bounded (Last a) Source

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

minBound :: Last a Source

maxBound :: Last a Source

Bounded a => Bounded (Max a) Source

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

minBound :: Max a Source

maxBound :: Max a Source

Bounded a => Bounded (Min a) Source

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Methods

minBound :: Min a Source

maxBound :: Min a Source

Bounded m => Bounded (WrappedMonoid m) Source

Since: base-4.9.0.0

Instance details

Defined in Data.Semigroup

Bounded a => Bounded (And a) Source

Since: base-4.16

Instance details

Defined in GHC.Internal.Data.Bits

Methods

minBound :: And a Source

maxBound :: And a Source

Bounded a => Bounded (Iff a) Source

Since: base-4.16

Instance details

Defined in GHC.Internal.Data.Bits

Methods

minBound :: Iff a Source

maxBound :: Iff a Source

Bounded a => Bounded (Ior a) Source

Since: base-4.16

Instance details

Defined in GHC.Internal.Data.Bits

Methods

minBound :: Ior a Source

maxBound :: Ior a Source

Bounded a => Bounded (Xor a) Source

Since: base-4.16

Instance details

Defined in GHC.Internal.Data.Bits

Methods

minBound :: Xor a Source

maxBound :: Xor a Source

Bounded a => Bounded (Identity a) Source

Since: base-4.9.0.0

Instance details

Defined in GHC.Internal.Data.Functor.Identity

Bounded a => Bounded (Down a) Source

Swaps minBound and maxBound of the underlying type.

Since: base-4.14.0.0

Instance details

Defined in GHC.Internal.Data.Ord

Methods

minBound :: Down a Source

maxBound :: Down a Source

Bounded a => Bounded (Dual a) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Methods

minBound :: Dual a Source

maxBound :: Dual a Source

Bounded a => Bounded (Product a) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Bounded a => Bounded (Sum a) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Data.Semigroup.Internal

Methods

minBound :: Sum a Source

maxBound :: Sum a Source

Bounded a => Bounded (Solo a) Source
Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: Solo a Source

maxBound :: Solo a Source

Bounded (Proxy t) Source

Since: base-4.7.0.0

Instance details

Defined in GHC.Internal.Data.Proxy

(Bounded a, Bounded b) => Bounded (a, b) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b) Source

maxBound :: (a, b) Source

Bounded a => Bounded (Const a b) Source

Since: base-4.9.0.0

Instance details

Defined in GHC.Internal.Data.Functor.Const

Methods

minBound :: Const a b Source

maxBound :: Const a b Source

(Applicative f, Bounded a) => Bounded (Ap f a) Source

Since: base-4.12.0.0

Instance details

Defined in GHC.Internal.Data.Monoid

Methods

minBound :: Ap f a Source

maxBound :: Ap f a Source

Coercible a b => Bounded (Coercion a b) Source

Since: base-4.7.0.0

Instance details

Defined in GHC.Internal.Data.Type.Coercion

a ~ b => Bounded (a :~: b) Source

Since: base-4.7.0.0

Instance details

Defined in GHC.Internal.Data.Type.Equality

Methods

minBound :: a :~: b Source

maxBound :: a :~: b Source

(Bounded a, Bounded b, Bounded c) => Bounded (a, b, c) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c) Source

maxBound :: (a, b, c) Source

a ~~ b => Bounded (a :~~: b) Source

Since: base-4.10.0.0

Instance details

Defined in GHC.Internal.Data.Type.Equality

Methods

minBound :: a :~~: b Source

maxBound :: a :~~: b Source

(Bounded a, Bounded b, Bounded c, Bounded d) => Bounded (a, b, c, d) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d) Source

maxBound :: (a, b, c, d) Source

Bounded (f (g a)) => Bounded (Compose f g a) Source

Since: base-4.19.0.0

Instance details

Defined in Data.Functor.Compose

Methods

minBound :: Compose f g a Source

maxBound :: Compose f g a Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e) => Bounded (a, b, c, d, e) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e) Source

maxBound :: (a, b, c, d, e) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f) => Bounded (a, b, c, d, e, f) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f) Source

maxBound :: (a, b, c, d, e, f) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g) => Bounded (a, b, c, d, e, f, g) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g) Source

maxBound :: (a, b, c, d, e, f, g) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h) => Bounded (a, b, c, d, e, f, g, h) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h) Source

maxBound :: (a, b, c, d, e, f, g, h) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i) => Bounded (a, b, c, d, e, f, g, h, i) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h, i) Source

maxBound :: (a, b, c, d, e, f, g, h, i) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j) => Bounded (a, b, c, d, e, f, g, h, i, j) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h, i, j) Source

maxBound :: (a, b, c, d, e, f, g, h, i, j) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k) => Bounded (a, b, c, d, e, f, g, h, i, j, k) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h, i, j, k) Source

maxBound :: (a, b, c, d, e, f, g, h, i, j, k) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h, i, j, k, l) Source

maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l, Bounded m) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l, m) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m) Source

maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l, Bounded m, Bounded n) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source

maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source

(Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l, Bounded m, Bounded n, Bounded o) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source

Since: base-2.1

Instance details

Defined in GHC.Internal.Enum

Methods

minBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source

maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/base-4.21.0.0-8e62/Data-Bounded.html