Synopsis

# Documentation

seq :: forall {r :: RuntimeRep} a (b :: TYPE r). a -> b -> b infixr 0 #

The value of seq a b is bottom if a is bottom, and otherwise equal to b. In other words, it evaluates the first argument a to weak head normal form (WHNF). seq is usually introduced to improve performance by avoiding unneeded laziness.

A note on evaluation order: the expression seq a b does not guarantee that a will be evaluated before b. The only guarantee given by seq is that the both a and b will be evaluated before seq returns a value. In particular, this means that b may be evaluated before a. If you need to guarantee a specific order of evaluation, you must use the function pseq from the "parallel" package.

fst :: (a, b) -> a #

Extract the first component of a pair.

snd :: (a, b) -> b #

Extract the second component of a pair.

otherwise is defined as the value True. It helps to make guards more readable. eg.

 f x | x < 0     = ...
| otherwise = ...

assert :: Bool -> a -> a #

If the first argument evaluates to True, then the result is the second argument. Otherwise an AssertionFailed exception is raised, containing a String with the source file and line number of the call to assert.

Assertions can normally be turned on or off with a compiler flag (for GHC, assertions are normally on unless optimisation is turned on with -O or the -fignore-asserts option is given). When assertions are turned off, the first argument to assert is ignored, and the second argument is returned as the result.

($) :: forall (r :: RuntimeRep) a (b :: TYPE r). (a -> b) -> a -> b infixr 0 # Application operator. This operator is redundant, since ordinary application (f x) means the same as (f$ x). However, $ has low, right-associative binding precedence, so it sometimes allows parentheses to be omitted; for example: f$ g $h x = f (g (h x)) It is also useful in higher-order situations, such as map ($ 0) xs, or zipWith ($) fs xs. Note that ($) is levity-polymorphic in its result type, so that foo \$ True where foo :: Bool -> Int# is well-typed.

fromIntegral :: (Integral a, Num b) => a -> b #

general coercion from integral types

realToFrac :: (Real a, Fractional b) => a -> b #

general coercion to fractional types

guard :: Alternative f => Bool -> f () #

Conditional failure of Alternative computations. Defined by

guard True  = pure ()
guard False = empty


#### Examples

Expand

Common uses of guard include conditionally signaling an error in an error monad and conditionally rejecting the current choice in an Alternative-based parser.

As an example of signaling an error in the error monad Maybe, consider a safe division function safeDiv x y that returns Nothing when the denominator y is zero and Just (x div y) otherwise. For example:

>>> safeDiv 4 0
Nothing
>>> safeDiv 4 2
Just 2


A definition of safeDiv using guards, but not guard:

safeDiv :: Int -> Int -> Maybe Int
safeDiv x y | y /= 0    = Just (x div y)
| otherwise = Nothing


A definition of safeDiv using guard and Monad do-notation:

safeDiv :: Int -> Int -> Maybe Int
safeDiv x y = do
guard (y /= 0)
return (x div y)


join :: Monad m => m (m a) -> m a #

The join function is the conventional monad join operator. It is used to remove one level of monadic structure, projecting its bound argument into the outer level.

'join bss' can be understood as the do expression

do bs <- bss
bs


#### Examples

Expand

A common use of join is to run an IO computation returned from an STM transaction, since STM transactions can't perform IO directly. Recall that

atomically :: STM a -> IO a


is used to run STM transactions atomically. So, by specializing the types of atomically and join to

atomically :: STM (IO b) -> IO (IO b)
join       :: IO (IO b)  -> IO b


we can compose them as

join . atomically :: STM (IO b) -> IO b


to run an STM transaction and the IO action it returns.

class Bounded a where #

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 #

maxBound :: a #

#### Instances

Instances details
 Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Unicode Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Instance detailsDefined in System.Directory.Internal.Common Methods Instance detailsDefined in System.Directory.Internal.Common Methods Instance detailsDefined in System.Directory.Internal.Common Methods Instance detailsDefined in GHC.LanguageExtensions.Type Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Instance detailsDefined in Data.GI.Base.Attributes Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Bounded () Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: () #maxBound :: () # Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-4.10.0.0 Instance detailsDefined in GHC.Enum Methods Since: base-4.10.0.0 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Bounded a => Bounded (Identity a) Since: base-4.9.0.0 Instance detailsDefined in Data.Functor.Identity Methods Bounded a => Bounded (Down a) Swaps minBound and maxBound of the underlying type.Since: base-4.14.0.0 Instance detailsDefined in Data.Ord Methods Bounded a => Bounded (First a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded a => Bounded (Last a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded a => Bounded (Max a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsminBound :: Max a #maxBound :: Max a # Bounded a => Bounded (Min a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsminBound :: Min a #maxBound :: Min a # Bounded m => Bounded (WrappedMonoid m) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded a => Bounded (Dual a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Bounded a => Bounded (Product a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Bounded a => Bounded (Sum a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsminBound :: Sum a #maxBound :: Sum a # Bounded (Proxy t) Since: base-4.7.0.0 Instance detailsDefined in Data.Proxy Methods (Bounded a, Bounded b) => Bounded (Pair a b) Instance detailsDefined in Data.Strict.Tuple MethodsminBound :: Pair a b #maxBound :: Pair a b # (Bounded a, Bounded b) => Bounded (a, b) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b) #maxBound :: (a, b) # Bounded a => Bounded (Const a b) Since: base-4.9.0.0 Instance detailsDefined in Data.Functor.Const MethodsminBound :: Const a b #maxBound :: Const a b # (Applicative f, Bounded a) => Bounded (Ap f a) Since: base-4.12.0.0 Instance detailsDefined in Data.Monoid MethodsminBound :: Ap f a #maxBound :: Ap f a # Bounded b => Bounded (Tagged s b) Instance detailsDefined in Data.Tagged MethodsminBound :: Tagged s b #maxBound :: Tagged s b # (Bounded a, Bounded b, Bounded c) => Bounded (a, b, c) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c) #maxBound :: (a, b, c) # (Bounded a, Bounded b, Bounded c, Bounded d) => Bounded (a, b, c, d) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d) #maxBound :: (a, b, c, d) # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e) => Bounded (a, b, c, d, e) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e) #maxBound :: (a, b, c, d, e) # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f) => Bounded (a, b, c, d, e, f) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f) #maxBound :: (a, b, c, d, e, f) # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g) => Bounded (a, b, c, d, e, f, g) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g) #maxBound :: (a, b, c, d, e, f, g) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h) #maxBound :: (a, b, c, d, e, f, g, h) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i) #maxBound :: (a, b, c, d, e, f, g, h, i) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j) #maxBound :: (a, b, c, d, e, f, g, h, i, j) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k) #maxBound :: (a, b, c, d, e, f, g, h, i, j, k) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l) #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m) #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) # (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) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) #

class Enum a where #

Class Enum defines operations on sequentially ordered types.

The enumFrom... methods are used in Haskell's translation of arithmetic sequences.

Instances of Enum may be derived for any enumeration type (types whose constructors have no fields). The nullary constructors are assumed to be numbered left-to-right by fromEnum from 0 through n-1. See Chapter 10 of the Haskell Report for more details.

For any type that is an instance of class Bounded as well as Enum, the following should hold:

• The calls succ maxBound and pred minBound should result in a runtime error.
• fromEnum and toEnum should give a runtime error if the result value is not representable in the result type. For example, toEnum 7 :: Bool is an error.
• enumFrom and enumFromThen should be defined with an implicit bound, thus:
   enumFrom     x   = enumFromTo     x maxBound
enumFromThen x y = enumFromThenTo x y bound
where
| otherwise                = minBound

Minimal complete definition

Methods

succ :: a -> a #

the successor of a value. For numeric types, succ adds 1.

pred :: a -> a #

the predecessor of a value. For numeric types, pred subtracts 1.

toEnum :: Int -> a #

Convert from an Int.

fromEnum :: a -> Int #

Convert to an Int. It is implementation-dependent what fromEnum returns when applied to a value that is too large to fit in an Int.

enumFrom :: a -> [a] #

Used in Haskell's translation of [n..] with [n..] = enumFrom n, a possible implementation being enumFrom n = n : enumFrom (succ n). For example:

• enumFrom 4 :: [Integer] = [4,5,6,7,...]
• enumFrom 6 :: [Int] = [6,7,8,9,...,maxBound :: Int]

enumFromThen :: a -> a -> [a] #

Used in Haskell's translation of [n,n'..] with [n,n'..] = enumFromThen n n', a possible implementation being enumFromThen n n' = n : n' : worker (f x) (f x n'), worker s v = v : worker s (s v), x = fromEnum n' - fromEnum n and f n y | n > 0 = f (n - 1) (succ y) | n < 0 = f (n + 1) (pred y) | otherwise = y For example:

• enumFromThen 4 6 :: [Integer] = [4,6,8,10...]
• enumFromThen 6 2 :: [Int] = [6,2,-2,-6,...,minBound :: Int]

enumFromTo :: a -> a -> [a] #

Used in Haskell's translation of [n..m] with [n..m] = enumFromTo n m, a possible implementation being enumFromTo n m | n <= m = n : enumFromTo (succ n) m | otherwise = []. For example:

• enumFromTo 6 10 :: [Int] = [6,7,8,9,10]
• enumFromTo 42 1 :: [Integer] = []

enumFromThenTo :: a -> a -> a -> [a] #

Used in Haskell's translation of [n,n'..m] with [n,n'..m] = enumFromThenTo n n' m, a possible implementation being enumFromThenTo n n' m = worker (f x) (c x) n m, x = fromEnum n' - fromEnum n, c x = bool (>=) ((x 0) f n y | n > 0 = f (n - 1) (succ y) | n < 0 = f (n + 1) (pred y) | otherwise = y and worker s c v m | c v m = v : worker s c (s v) m | otherwise = [] For example:

• enumFromThenTo 4 2 -6 :: [Integer] = [4,2,0,-2,-4,-6]
• enumFromThenTo 6 8 2 :: [Int] = []

#### Instances

Instances details
 Instance detailsDefined in Foreign.C.Types Methodssucc :: CBool -> CBool #pred :: CBool -> CBool #toEnum :: Int -> CBool #enumFrom :: CBool -> [CBool] #enumFromThen :: CBool -> CBool -> [CBool] #enumFromTo :: CBool -> CBool -> [CBool] #enumFromThenTo :: CBool -> CBool -> CBool -> [CBool] # Instance detailsDefined in Foreign.C.Types Methodssucc :: CChar -> CChar #pred :: CChar -> CChar #toEnum :: Int -> CChar #enumFrom :: CChar -> [CChar] #enumFromThen :: CChar -> CChar -> [CChar] #enumFromTo :: CChar -> CChar -> [CChar] #enumFromThenTo :: CChar -> CChar -> CChar -> [CChar] # Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CClock #enumFrom :: CClock -> [CClock] #enumFromThen :: CClock -> CClock -> [CClock] #enumFromTo :: CClock -> CClock -> [CClock] #enumFromThenTo :: CClock -> CClock -> CClock -> [CClock] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CDouble -> [CDouble] #enumFromThen :: CDouble -> CDouble -> [CDouble] #enumFromTo :: CDouble -> CDouble -> [CDouble] #enumFromThenTo :: CDouble -> CDouble -> CDouble -> [CDouble] # Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CFloat #enumFrom :: CFloat -> [CFloat] #enumFromThen :: CFloat -> CFloat -> [CFloat] #enumFromTo :: CFloat -> CFloat -> [CFloat] #enumFromThenTo :: CFloat -> CFloat -> CFloat -> [CFloat] # Instance detailsDefined in Foreign.C.Types Methodssucc :: CInt -> CInt #pred :: CInt -> CInt #toEnum :: Int -> CInt #fromEnum :: CInt -> Int #enumFrom :: CInt -> [CInt] #enumFromThen :: CInt -> CInt -> [CInt] #enumFromTo :: CInt -> CInt -> [CInt] #enumFromThenTo :: CInt -> CInt -> CInt -> [CInt] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CIntMax -> [CIntMax] #enumFromThen :: CIntMax -> CIntMax -> [CIntMax] #enumFromTo :: CIntMax -> CIntMax -> [CIntMax] #enumFromThenTo :: CIntMax -> CIntMax -> CIntMax -> [CIntMax] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CIntPtr -> [CIntPtr] #enumFromThen :: CIntPtr -> CIntPtr -> [CIntPtr] #enumFromTo :: CIntPtr -> CIntPtr -> [CIntPtr] #enumFromThenTo :: CIntPtr -> CIntPtr -> CIntPtr -> [CIntPtr] # Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CLLong #enumFrom :: CLLong -> [CLLong] #enumFromThen :: CLLong -> CLLong -> [CLLong] #enumFromTo :: CLLong -> CLLong -> [CLLong] #enumFromThenTo :: CLLong -> CLLong -> CLLong -> [CLLong] # Instance detailsDefined in Foreign.C.Types Methodssucc :: CLong -> CLong #pred :: CLong -> CLong #toEnum :: Int -> CLong #enumFrom :: CLong -> [CLong] #enumFromThen :: CLong -> CLong -> [CLong] #enumFromTo :: CLong -> CLong -> [CLong] #enumFromThenTo :: CLong -> CLong -> CLong -> [CLong] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CPtrdiff -> [CPtrdiff] #enumFromTo :: CPtrdiff -> CPtrdiff -> [CPtrdiff] # Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CSChar #enumFrom :: CSChar -> [CSChar] #enumFromThen :: CSChar -> CSChar -> [CSChar] #enumFromTo :: CSChar -> CSChar -> [CSChar] #enumFromThenTo :: CSChar -> CSChar -> CSChar -> [CSChar] # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CShort #enumFrom :: CShort -> [CShort] #enumFromThen :: CShort -> CShort -> [CShort] #enumFromTo :: CShort -> CShort -> [CShort] #enumFromThenTo :: CShort -> CShort -> CShort -> [CShort] # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methodssucc :: CSize -> CSize #pred :: CSize -> CSize #toEnum :: Int -> CSize #enumFrom :: CSize -> [CSize] #enumFromThen :: CSize -> CSize -> [CSize] #enumFromTo :: CSize -> CSize -> [CSize] #enumFromThenTo :: CSize -> CSize -> CSize -> [CSize] # Instance detailsDefined in Foreign.C.Types Methodssucc :: CTime -> CTime #pred :: CTime -> CTime #toEnum :: Int -> CTime #enumFrom :: CTime -> [CTime] #enumFromThen :: CTime -> CTime -> [CTime] #enumFromTo :: CTime -> CTime -> [CTime] #enumFromThenTo :: CTime -> CTime -> CTime -> [CTime] # Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CUChar #enumFrom :: CUChar -> [CUChar] #enumFromThen :: CUChar -> CUChar -> [CUChar] #enumFromTo :: CUChar -> CUChar -> [CUChar] #enumFromThenTo :: CUChar -> CUChar -> CUChar -> [CUChar] # Instance detailsDefined in Foreign.C.Types Methodssucc :: CUInt -> CUInt #pred :: CUInt -> CUInt #toEnum :: Int -> CUInt #enumFrom :: CUInt -> [CUInt] #enumFromThen :: CUInt -> CUInt -> [CUInt] #enumFromTo :: CUInt -> CUInt -> [CUInt] #enumFromThenTo :: CUInt -> CUInt -> CUInt -> [CUInt] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CUIntMax -> [CUIntMax] #enumFromTo :: CUIntMax -> CUIntMax -> [CUIntMax] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CUIntPtr -> [CUIntPtr] #enumFromTo :: CUIntPtr -> CUIntPtr -> [CUIntPtr] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CULLong -> [CULLong] #enumFromThen :: CULLong -> CULLong -> [CULLong] #enumFromTo :: CULLong -> CULLong -> [CULLong] #enumFromThenTo :: CULLong -> CULLong -> CULLong -> [CULLong] # Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CULong #enumFrom :: CULong -> [CULong] #enumFromThen :: CULong -> CULong -> [CULong] #enumFromTo :: CULong -> CULong -> [CULong] #enumFromThenTo :: CULong -> CULong -> CULong -> [CULong] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CUSeconds -> [CUSeconds] # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CUShort -> [CUShort] #enumFromThen :: CUShort -> CUShort -> [CUShort] #enumFromTo :: CUShort -> CUShort -> [CUShort] #enumFromThenTo :: CUShort -> CUShort -> CUShort -> [CUShort] # Instance detailsDefined in Foreign.C.Types MethodstoEnum :: Int -> CWchar #enumFrom :: CWchar -> [CWchar] #enumFromThen :: CWchar -> CWchar -> [CWchar] #enumFromTo :: CWchar -> CWchar -> [CWchar] #enumFromThenTo :: CWchar -> CWchar -> CWchar -> [CWchar] # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.Device MethodsenumFrom :: SeekMode -> [SeekMode] #enumFromTo :: SeekMode -> SeekMode -> [SeekMode] # Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.IOMode MethodstoEnum :: Int -> IOMode #enumFrom :: IOMode -> [IOMode] #enumFromThen :: IOMode -> IOMode -> [IOMode] #enumFromTo :: IOMode -> IOMode -> [IOMode] #enumFromThenTo :: IOMode -> IOMode -> IOMode -> [IOMode] # Since: base-2.1 Instance detailsDefined in GHC.Int Methodssucc :: Int16 -> Int16 #pred :: Int16 -> Int16 #toEnum :: Int -> Int16 #enumFrom :: Int16 -> [Int16] #enumFromThen :: Int16 -> Int16 -> [Int16] #enumFromTo :: Int16 -> Int16 -> [Int16] #enumFromThenTo :: Int16 -> Int16 -> Int16 -> [Int16] # Since: base-2.1 Instance detailsDefined in GHC.Int Methodssucc :: Int32 -> Int32 #pred :: Int32 -> Int32 #toEnum :: Int -> Int32 #enumFrom :: Int32 -> [Int32] #enumFromThen :: Int32 -> Int32 -> [Int32] #enumFromTo :: Int32 -> Int32 -> [Int32] #enumFromThenTo :: Int32 -> Int32 -> Int32 -> [Int32] # Since: base-2.1 Instance detailsDefined in GHC.Int Methodssucc :: Int64 -> Int64 #pred :: Int64 -> Int64 #toEnum :: Int -> Int64 #enumFrom :: Int64 -> [Int64] #enumFromThen :: Int64 -> Int64 -> [Int64] #enumFromTo :: Int64 -> Int64 -> [Int64] #enumFromThenTo :: Int64 -> Int64 -> Int64 -> [Int64] # Since: base-2.1 Instance detailsDefined in GHC.Int Methodssucc :: Int8 -> Int8 #pred :: Int8 -> Int8 #toEnum :: Int -> Int8 #fromEnum :: Int8 -> Int #enumFrom :: Int8 -> [Int8] #enumFromThen :: Int8 -> Int8 -> [Int8] #enumFromTo :: Int8 -> Int8 -> [Int8] #enumFromThenTo :: Int8 -> Int8 -> Int8 -> [Int8] # Since: base-4.8.0.0 Instance detailsDefined in GHC.RTS.Flags Methods Since: base-4.8.0.0 Instance detailsDefined in GHC.RTS.Flags Methods Since: base-4.8.0.0 Instance detailsDefined in GHC.RTS.Flags MethodsenumFrom :: DoTrace -> [DoTrace] #enumFromThen :: DoTrace -> DoTrace -> [DoTrace] #enumFromTo :: DoTrace -> DoTrace -> [DoTrace] #enumFromThenTo :: DoTrace -> DoTrace -> DoTrace -> [DoTrace] # Since: base-4.8.0.0 Instance detailsDefined in GHC.RTS.Flags Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.RTS.Flags Methods Since: base-2.1 Instance detailsDefined in GHC.Unicode Methods Since: base-2.1 Instance detailsDefined in GHC.Word MethodstoEnum :: Int -> Word16 #enumFrom :: Word16 -> [Word16] #enumFromThen :: Word16 -> Word16 -> [Word16] #enumFromTo :: Word16 -> Word16 -> [Word16] #enumFromThenTo :: Word16 -> Word16 -> Word16 -> [Word16] # Since: base-2.1 Instance detailsDefined in GHC.Word MethodstoEnum :: Int -> Word32 #enumFrom :: Word32 -> [Word32] #enumFromThen :: Word32 -> Word32 -> [Word32] #enumFromTo :: Word32 -> Word32 -> [Word32] #enumFromThenTo :: Word32 -> Word32 -> Word32 -> [Word32] # Since: base-2.1 Instance detailsDefined in GHC.Word MethodstoEnum :: Int -> Word64 #enumFrom :: Word64 -> [Word64] #enumFromThen :: Word64 -> Word64 -> [Word64] #enumFromTo :: Word64 -> Word64 -> [Word64] #enumFromThenTo :: Word64 -> Word64 -> Word64 -> [Word64] # Instance detailsDefined in System.Directory.Internal.Common MethodsenumFrom :: FileType -> [FileType] #enumFromTo :: FileType -> FileType -> [FileType] # Instance detailsDefined in System.Directory.Internal.Common Methods Instance detailsDefined in System.Directory.Internal.Common Methods Instance detailsDefined in GHC.LanguageExtensions.Type MethodsenumFrom :: Extension -> [Extension] # Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsenumFrom :: Ordering -> [Ordering] #enumFromTo :: Ordering -> Ordering -> [Ordering] # Instance detailsDefined in GI.Atk.Enums MethodsenumFrom :: CoordType -> [CoordType] # Instance detailsDefined in GI.Atk.Enums Methods Instance detailsDefined in GI.Atk.Enums Methodssucc :: Layer -> Layer #pred :: Layer -> Layer #toEnum :: Int -> Layer #enumFrom :: Layer -> [Layer] #enumFromThen :: Layer -> Layer -> [Layer] #enumFromTo :: Layer -> Layer -> [Layer] #enumFromThenTo :: Layer -> Layer -> Layer -> [Layer] # Instance detailsDefined in GI.Atk.Enums Methods Instance detailsDefined in GI.Atk.Enums Methodssucc :: Role -> Role #pred :: Role -> Role #toEnum :: Int -> Role #fromEnum :: Role -> Int #enumFrom :: Role -> [Role] #enumFromThen :: Role -> Role -> [Role] #enumFromTo :: Role -> Role -> [Role] #enumFromThenTo :: Role -> Role -> Role -> [Role] # Instance detailsDefined in GI.Atk.Enums Methods Instance detailsDefined in GI.Atk.Enums MethodsenumFrom :: StateType -> [StateType] # Instance detailsDefined in GI.Atk.Enums Methods Instance detailsDefined in GI.Atk.Enums Methods Instance detailsDefined in GI.Atk.Enums Methods Instance detailsDefined in GI.Atk.Enums Methods Instance detailsDefined in GI.Atk.Enums MethodsenumFrom :: ValueType -> [ValueType] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: Antialias -> [Antialias] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: Content -> [Content] #enumFromThen :: Content -> Content -> [Content] #enumFromTo :: Content -> Content -> [Content] #enumFromThenTo :: Content -> Content -> Content -> [Content] # Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums MethodstoEnum :: Int -> Extend #enumFrom :: Extend -> [Extend] #enumFromThen :: Extend -> Extend -> [Extend] #enumFromTo :: Extend -> Extend -> [Extend] #enumFromThenTo :: Extend -> Extend -> Extend -> [Extend] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: FillRule -> [FillRule] #enumFromTo :: FillRule -> FillRule -> [FillRule] # Instance detailsDefined in GI.Cairo.Enums MethodstoEnum :: Int -> Filter #enumFrom :: Filter -> [Filter] #enumFromThen :: Filter -> Filter -> [Filter] #enumFromTo :: Filter -> Filter -> [Filter] #enumFromThenTo :: Filter -> Filter -> Filter -> [Filter] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: FontSlant -> [FontSlant] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: FontType -> [FontType] #enumFromTo :: FontType -> FontType -> [FontType] # Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums MethodstoEnum :: Int -> Format #enumFrom :: Format -> [Format] #enumFromThen :: Format -> Format -> [Format] #enumFromTo :: Format -> Format -> [Format] #enumFromThenTo :: Format -> Format -> Format -> [Format] # Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: HintStyle -> [HintStyle] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: LineCap -> [LineCap] #enumFromThen :: LineCap -> LineCap -> [LineCap] #enumFromTo :: LineCap -> LineCap -> [LineCap] #enumFromThenTo :: LineCap -> LineCap -> LineCap -> [LineCap] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: LineJoin -> [LineJoin] #enumFromTo :: LineJoin -> LineJoin -> [LineJoin] # Instance detailsDefined in GI.Cairo.Enums MethodsenumFrom :: Operator -> [Operator] #enumFromTo :: Operator -> Operator -> [Operator] # Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums MethodstoEnum :: Int -> Status #enumFrom :: Status -> [Status] #enumFromThen :: Status -> Status -> [Status] #enumFromTo :: Status -> Status -> [Status] #enumFromThenTo :: Status -> Status -> Status -> [Status] # Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Cairo.Enums Methods Instance detailsDefined in GI.Gdk.Enums MethodsenumFrom :: AxisUse -> [AxisUse] #enumFromThen :: AxisUse -> AxisUse -> [AxisUse] #enumFromTo :: AxisUse -> AxisUse -> [AxisUse] #enumFromThenTo :: AxisUse -> AxisUse -> AxisUse -> [AxisUse] # Instance detailsDefined in GI.Gdk.Enums MethodsenumFrom :: ByteOrder -> [ByteOrder] # Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums MethodsenumFrom :: EventType -> [EventType] # Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums MethodsenumFrom :: GLError -> [GLError] #enumFromThen :: GLError -> GLError -> [GLError] #enumFromTo :: GLError -> GLError -> [GLError] #enumFromThenTo :: GLError -> GLError -> GLError -> [GLError] # Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums MethodsenumFrom :: Gravity -> [Gravity] #enumFromThen :: Gravity -> Gravity -> [Gravity] #enumFromTo :: Gravity -> Gravity -> [Gravity] #enumFromThenTo :: Gravity -> Gravity -> Gravity -> [Gravity] # Instance detailsDefined in GI.Gdk.Enums MethodsenumFrom :: InputMode -> [InputMode] # Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums MethodsenumFrom :: PropMode -> [PropMode] #enumFromTo :: PropMode -> PropMode -> [PropMode] # Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums MethodstoEnum :: Int -> Status #enumFrom :: Status -> [Status] #enumFromThen :: Status -> Status -> [Status] #enumFromTo :: Status -> Status -> [Status] #enumFromThenTo :: Status -> Status -> Status -> [Status] # Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Enums Methods Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags MethodsenumFrom :: AxisFlags -> [AxisFlags] # Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags MethodsenumFrom :: EventMask -> [EventMask] # Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.Gdk.Flags Methods Instance detailsDefined in GI.GdkPixbuf.Enums Methods Instance detailsDefined in GI.GdkPixbuf.Enums Methods Instance detailsDefined in GI.GdkPixbuf.Enums Methods Instance detailsDefined in GI.GdkPixbuf.Enums Methods Instance detailsDefined in GI.GdkPixbuf.Enums Methods Instance detailsDefined in GI.Gio.Enums MethodsenumFrom :: BusType -> [BusType] #enumFromThen :: BusType -> BusType -> [BusType] #enumFromTo :: BusType -> BusType -> [BusType] #enumFromThenTo :: BusType -> BusType -> BusType -> [BusType] # Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums MethodsenumFrom :: DBusError -> [DBusError] # Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums MethodsenumFrom :: FileType -> [FileType] #enumFromTo :: FileType -> FileType -> [FileType] # Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Methods Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums Instance detailsDefined in GI.Gio.Enums