basement-0.0.12: Foundation scrap box of array & string

Basement.Compat.Base

Description

internal re-export of all the good base bits

Synopsis

# Documentation

($) :: forall (r :: RuntimeRep) a (b :: TYPE r). (a -> b) -> a -> b infixr 0 Source # 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. ($!) :: forall (r :: RuntimeRep) a (b :: TYPE r). (a -> b) -> a -> b infixr 0 Source #

Strict (call-by-value) application operator. It takes a function and an argument, evaluates the argument to weak head normal form (WHNF), then calls the function with that value.

(&&) :: Bool -> Bool -> Bool infixr 3 Source #

Boolean "and", lazy in the second argument

(||) :: Bool -> Bool -> Bool infixr 2 Source #

Boolean "or", lazy in the second argument

(.) :: forall (b :: k) (c :: k) (a :: k). Category cat => cat b c -> cat a b -> cat a c infixr 9 Source #

morphism composition

(<$>) :: Functor f => (a -> b) -> f a -> f b infixl 4 Source # An infix synonym for fmap. The name of this operator is an allusion to $. Note the similarities between their types:

 ($) :: (a -> b) -> a -> b (<$>) :: Functor f => (a -> b) -> f a -> f b

Whereas $ is function application, <$> is function application lifted over a Functor.

#### Examples

Expand

Convert from a Maybe Int to a Maybe String using show:

>>> show <$> Nothing Nothing >>> show <$> Just 3
Just "3"


Convert from an Either Int Int to an Either Int String using show:

>>> show <$> Left 17 Left 17 >>> show <$> Right 17
Right "17"


Double each element of a list:

>>> (*2) <$> [1,2,3] [2,4,6]  Apply even to the second element of a pair: >>> even <$> (2,2)
(2,True)


Boolean "not"

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

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

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

Extract the first component of a pair.

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

Extract the second component of a pair.

id :: forall (a :: k). Category cat => cat a a Source #

the identity morphism

maybe :: b -> (a -> b) -> Maybe a -> b Source #

The maybe function takes a default value, a function, and a Maybe value. If the Maybe value is Nothing, the function returns the default value. Otherwise, it applies the function to the value inside the Just and returns the result.

#### Examples

Expand

Basic usage:

>>> maybe False odd (Just 3)
True

>>> maybe False odd Nothing
False


Read an integer from a string using readMaybe. If we succeed, return twice the integer; that is, apply (*2) to it. If instead we fail to parse an integer, return 0 by default:

>>> import Text.Read ( readMaybe )
>>> maybe 0 (*2) (readMaybe "5")
10
>>> maybe 0 (*2) (readMaybe "")
0


Apply show to a Maybe Int. If we have Just n, we want to show the underlying Int n. But if we have Nothing, we return the empty string instead of (for example) "Nothing":

>>> maybe "" show (Just 5)
"5"
>>> maybe "" show Nothing
""


either :: (a -> c) -> (b -> c) -> Either a b -> c Source #

Case analysis for the Either type. If the value is Left a, apply the first function to a; if it is Right b, apply the second function to b.

#### Examples

Expand

We create two values of type Either String Int, one using the Left constructor and another using the Right constructor. Then we apply "either" the length function (if we have a String) or the "times-two" function (if we have an Int):

>>> let s = Left "foo" :: Either String Int
>>> let n = Right 3 :: Either String Int
>>> either length (*2) s
3
>>> either length (*2) n
6


flip :: (a -> b -> c) -> b -> a -> c Source #

flip f takes its (first) two arguments in the reverse order of f.

>>> flip (++) "hello" "world"
"worldhello"


const :: a -> b -> a Source #

const x is a unary function which evaluates to x for all inputs.

>>> const 42 "hello"
42

>>> map (const 42) [0..3]
[42,42,42,42]


error :: forall (r :: RuntimeRep) (a :: TYPE r). HasCallStack => [Char] -> a Source #

error stops execution and displays an error message.

and :: Foldable t => t Bool -> Bool Source #

and returns the conjunction of a container of Bools. For the result to be True, the container must be finite; False, however, results from a False value finitely far from the left end.

undefined :: forall (r :: RuntimeRep) (a :: TYPE r). HasCallStack => a Source #

A special case of error. It is expected that compilers will recognize this and insert error messages which are more appropriate to the context in which undefined appears.

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

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.

class Show a where Source #

Conversion of values to readable Strings.

Derived instances of Show have the following properties, which are compatible with derived instances of Read:

• The result of show is a syntactically correct Haskell expression containing only constants, given the fixity declarations in force at the point where the type is declared. It contains only the constructor names defined in the data type, parentheses, and spaces. When labelled constructor fields are used, braces, commas, field names, and equal signs are also used.
• If the constructor is defined to be an infix operator, then showsPrec will produce infix applications of the constructor.
• the representation will be enclosed in parentheses if the precedence of the top-level constructor in x is less than d (associativity is ignored). Thus, if d is 0 then the result is never surrounded in parentheses; if d is 11 it is always surrounded in parentheses, unless it is an atomic expression.
• If the constructor is defined using record syntax, then show will produce the record-syntax form, with the fields given in the same order as the original declaration.

For example, given the declarations

infixr 5 :^:
data Tree a =  Leaf a  |  Tree a :^: Tree a

the derived instance of Show is equivalent to

instance (Show a) => Show (Tree a) where

showsPrec d (Leaf m) = showParen (d > app_prec) $showString "Leaf " . showsPrec (app_prec+1) m where app_prec = 10 showsPrec d (u :^: v) = showParen (d > up_prec)$
showsPrec (up_prec+1) u .
showString " :^: "      .
showsPrec (up_prec+1) v
where up_prec = 5

Note that right-associativity of :^: is ignored. For example,

• show (Leaf 1 :^: Leaf 2 :^: Leaf 3) produces the string "Leaf 1 :^: (Leaf 2 :^: Leaf 3)".

Minimal complete definition

Methods

Arguments

 :: Int the operator precedence of the enclosing context (a number from 0 to 11). Function application has precedence 10. -> a the value to be converted to a String -> ShowS

Convert a value to a readable String.

showsPrec should satisfy the law

showsPrec d x r ++ s  ==  showsPrec d x (r ++ s)

Derived instances of Read and Show satisfy the following:

• (x,"") is an element of (readsPrec d (showsPrec d x "")).

That is, readsPrec parses the string produced by showsPrec, and delivers the value that showsPrec started with.

show :: a -> String Source #

A specialised variant of showsPrec, using precedence context zero, and returning an ordinary String.

showList :: [a] -> ShowS Source #

The method showList is provided to allow the programmer to give a specialised way of showing lists of values. For example, this is used by the predefined Show instance of the Char type, where values of type String should be shown in double quotes, rather than between square brackets.

#### Instances

Instances details
 Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Bool] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Char] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Int] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowList :: [Int8] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowList :: [Int16] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowList :: [Int32] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsshowList :: [Int64] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Integer] -> ShowS Source # Since: base-4.8.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [Natural] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Ordering] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [Word] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowList :: [Word8] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowList :: [Word16] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowList :: [Word32] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsshowList :: [Word64] -> ShowS Source # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [RuntimeRep] -> ShowS Source # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [VecCount] -> ShowS Source # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [VecElem] -> ShowS Source # Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [CallStack] -> ShowS Source # Since: base-4.10.0.0 Instance detailsDefined in Data.Typeable.Internal MethodsshowList :: [SomeTypeRep] -> ShowS Source # Show () Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> () -> ShowS Source #show :: () -> String Source #showList :: [()] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowList :: [TyCon] -> ShowS Source # Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [Module] -> ShowS Source # Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [TrName] -> ShowS Source # Instance detailsDefined in GHC.Show MethodsshowList :: [KindRep] -> ShowS Source # Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [TypeLitSort] -> ShowS Source # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [DataType] -> ShowS Source # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [Constr] -> ShowS Source # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [DataRep] -> ShowS Source # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [ConstrRep] -> ShowS Source # Since: base-4.0.0.0 Instance detailsDefined in Data.Data MethodsshowList :: [Fixity] -> ShowS Source # Since: base-2.1 Instance detailsDefined in Data.Version MethodsshowList :: [Version] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CDev] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CIno] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CMode] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [COff] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CPid] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CSsize] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CGid] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CNlink] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CUid] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CCc] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CSpeed] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CTcflag] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CRLim] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CBlkSize] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CBlkCnt] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CClockId] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CFsBlkCnt] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CFsFilCnt] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CId] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CKey] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CTimer] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CSocklen] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [CNfds] -> ShowS Source # Instance detailsDefined in System.Posix.Types MethodsshowList :: [Fd] -> ShowS Source # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [Deadlock] -> ShowS Source # Since: base-4.7.1.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.10.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.7.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.11.0.0 Instance detailsDefined in GHC.IO.Exception Methods Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [ExitCode] -> ShowS Source # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [IOErrorType] -> ShowS Source # Since: base-4.3.0.0 Instance detailsDefined in GHC.IO MethodsshowList :: [MaskingState] -> ShowS Source # Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception MethodsshowList :: [IOException] -> ShowS Source # Since: base-4.0.0.0 Instance detailsDefined in GHC.Exception MethodsshowList :: [ErrorCall] -> ShowS Source # Since: base-4.0.0.0 Instance detailsDefined in GHC.Exception.Type Methods Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowList :: [All] -> ShowS Source # Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowList :: [Any] -> ShowS Source # Since: base-4.6.0.0 Instance detailsDefined in GHC.Generics MethodsshowList :: [Fixity] -> ShowS Source # Since: base-4.6.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.7.0.0 Instance detailsDefined in GHC.TypeLits MethodsshowList :: [SomeSymbol] -> ShowS Source # Since: base-4.7.0.0 Instance detailsDefined in GHC.TypeNats MethodsshowList :: [SomeNat] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CChar] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CSChar] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUChar] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CShort] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUShort] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CInt] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUInt] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CLong] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CULong] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CLLong] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CULLong] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CBool] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CFloat] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CDouble] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CPtrdiff] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CSize] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CWchar] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CSigAtomic] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CClock] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CTime] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUSeconds] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CSUSeconds] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CIntPtr] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUIntPtr] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CIntMax] -> ShowS Source # Instance detailsDefined in Foreign.C.Types MethodsshowList :: [CUIntMax] -> ShowS Source # Instance detailsDefined in Foreign.Ptr MethodsshowList :: [WordPtr] -> ShowS Source # Instance detailsDefined in Foreign.Ptr MethodsshowList :: [IntPtr] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.Unicode Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Show MethodsshowList :: [SrcLoc] -> ShowS Source # Since: base-3.0 Instance detailsDefined in GHC.Exception.Type Methods Source # Instance detailsDefined in Basement.Endianness MethodsshowList :: [Endianness] -> ShowS Source # Source # Instance detailsDefined in Basement.Types.Char7 MethodsshowList :: [Char7] -> ShowS Source # Source # Instance detailsDefined in Basement.Types.Word128 MethodsshowList :: [Word128] -> ShowS Source # Source # Instance detailsDefined in Basement.Types.Word256 MethodsshowList :: [Word256] -> ShowS Source # Source # Instance detailsDefined in Basement.Types.OffsetSize MethodsshowList :: [FileSize] -> ShowS Source # Source # Instance detailsDefined in Basement.Exception Methods Source # Instance detailsDefined in Basement.Exception Methods Source # Instance detailsDefined in Basement.Exception Methods Source # Instance detailsDefined in Basement.Exception Methods Source # Instance detailsDefined in Basement.Exception MethodsshowList :: [OutOfBound] -> ShowS Source # Source # Instance detailsDefined in Basement.Exception Methods Source # Instance detailsDefined in Basement.Types.AsciiString MethodsshowList :: [AsciiString] -> ShowS Source # Source # Instance detailsDefined in Basement.String.Encoding.UTF32 Methods Source # Instance detailsDefined in Basement.String.Encoding.UTF16 Methods Source # Instance detailsDefined in Basement.String.Encoding.ISO_8859_1 Methods Source # Instance detailsDefined in Basement.String.Encoding.ASCII7 Methods Source # Instance detailsDefined in Basement.UTF8.Types Methods Source # Instance detailsDefined in Basement.UTF8.Base MethodsshowList :: [String] -> ShowS Source # Source # Instance detailsDefined in Basement.String MethodsshowList :: [Encoding] -> ShowS Source # Show a => Show [a] Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> [a] -> ShowS Source #show :: [a] -> String Source #showList :: [[a]] -> ShowS Source # Show a => Show (Maybe a) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> Maybe a -> ShowS Source #show :: Maybe a -> String Source #showList :: [Maybe a] -> ShowS Source # Show a => Show (Ratio a) Since: base-2.0.1 Instance detailsDefined in GHC.Real MethodsshowsPrec :: Int -> Ratio a -> ShowS Source #show :: Ratio a -> String Source #showList :: [Ratio a] -> ShowS Source # Show (Ptr a) Since: base-2.1 Instance detailsDefined in GHC.Ptr MethodsshowsPrec :: Int -> Ptr a -> ShowS Source #show :: Ptr a -> String Source #showList :: [Ptr a] -> ShowS Source # Show (FunPtr a) Since: base-2.1 Instance detailsDefined in GHC.Ptr MethodsshowsPrec :: Int -> FunPtr a -> ShowS Source #show :: FunPtr a -> String Source #showList :: [FunPtr a] -> ShowS Source # Show p => Show (Par1 p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> Par1 p -> ShowS Source #show :: Par1 p -> String Source #showList :: [Par1 p] -> ShowS Source # Show a => Show (Min a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Min a -> ShowS Source #show :: Min a -> String Source #showList :: [Min a] -> ShowS Source # Show a => Show (Max a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Max a -> ShowS Source #show :: Max a -> String Source #showList :: [Max a] -> ShowS Source # Show a => Show (First a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> First a -> ShowS Source #show :: First a -> String Source #showList :: [First a] -> ShowS Source # Show a => Show (Last a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Last a -> ShowS Source #show :: Last a -> String Source #showList :: [Last a] -> ShowS Source # Show m => Show (WrappedMonoid m) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowList :: [WrappedMonoid m] -> ShowS Source # Show a => Show (Option a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Option a -> ShowS Source #show :: Option a -> String Source #showList :: [Option a] -> ShowS Source # Show a => Show (ZipList a) Since: base-4.7.0.0 Instance detailsDefined in Control.Applicative MethodsshowsPrec :: Int -> ZipList a -> ShowS Source #show :: ZipList a -> String Source #showList :: [ZipList a] -> ShowS Source # Show a => Show (Identity a) This instance would be equivalent to the derived instances of the Identity newtype if the runIdentity field were removedSince: base-4.8.0.0 Instance detailsDefined in Data.Functor.Identity MethodsshowsPrec :: Int -> Identity a -> ShowS Source #showList :: [Identity a] -> ShowS Source # Since: base-2.1 Instance detailsDefined in GHC.ForeignPtr MethodsshowList :: [ForeignPtr a] -> ShowS Source # Show a => Show (First a) Since: base-2.1 Instance detailsDefined in Data.Monoid MethodsshowsPrec :: Int -> First a -> ShowS Source #show :: First a -> String Source #showList :: [First a] -> ShowS Source # Show a => Show (Last a) Since: base-2.1 Instance detailsDefined in Data.Monoid MethodsshowsPrec :: Int -> Last a -> ShowS Source #show :: Last a -> String Source #showList :: [Last a] -> ShowS Source # Show a => Show (Dual a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Dual a -> ShowS Source #show :: Dual a -> String Source #showList :: [Dual a] -> ShowS Source # Show a => Show (Sum a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Sum a -> ShowS Source #show :: Sum a -> String Source #showList :: [Sum a] -> ShowS Source # Show a => Show (Product a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Product a -> ShowS Source #show :: Product a -> String Source #showList :: [Product a] -> ShowS Source # Show a => Show (Down a) This instance would be equivalent to the derived instances of the Down newtype if the getDown field were removedSince: base-4.7.0.0 Instance detailsDefined in Data.Ord MethodsshowsPrec :: Int -> Down a -> ShowS Source #show :: Down a -> String Source #showList :: [Down a] -> ShowS Source # Show a => Show (NonEmpty a) Since: base-4.11.0.0 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> NonEmpty a -> ShowS Source #showList :: [NonEmpty a] -> ShowS Source # Show a => Show (BE a) Source # Instance detailsDefined in Basement.Endianness MethodsshowsPrec :: Int -> BE a -> ShowS Source #show :: BE a -> String Source #showList :: [BE a] -> ShowS Source # Show a => Show (LE a) Source # Instance detailsDefined in Basement.Endianness MethodsshowsPrec :: Int -> LE a -> ShowS Source #show :: LE a -> String Source #showList :: [LE a] -> ShowS Source # Show (FinalPtr a) Source # Instance detailsDefined in Basement.FinalPtr MethodsshowsPrec :: Int -> FinalPtr a -> ShowS Source #showList :: [FinalPtr a] -> ShowS Source # Show (Zn n) Source # Instance detailsDefined in Basement.Bounded MethodsshowsPrec :: Int -> Zn n -> ShowS Source #show :: Zn n -> String Source #showList :: [Zn n] -> ShowS Source # Show (Zn64 n) Source # Instance detailsDefined in Basement.Bounded MethodsshowsPrec :: Int -> Zn64 n -> ShowS Source #show :: Zn64 n -> String Source #showList :: [Zn64 n] -> ShowS Source # Show (CountOf ty) Source # Instance detailsDefined in Basement.Types.OffsetSize MethodsshowsPrec :: Int -> CountOf ty -> ShowS Source #show :: CountOf ty -> String Source #showList :: [CountOf ty] -> ShowS Source # Show (Offset ty) Source # Instance detailsDefined in Basement.Types.OffsetSize MethodsshowsPrec :: Int -> Offset ty -> ShowS Source #show :: Offset ty -> String Source #showList :: [Offset ty] -> ShowS Source # Show a => Show (NonEmpty a) Source # Instance detailsDefined in Basement.NonEmpty MethodsshowsPrec :: Int -> NonEmpty a -> ShowS Source #showList :: [NonEmpty a] -> ShowS Source # (PrimType ty, Show ty) => Show (Block ty) Source # Instance detailsDefined in Basement.Block.Base MethodsshowsPrec :: Int -> Block ty -> ShowS Source #show :: Block ty -> String Source #showList :: [Block ty] -> ShowS Source # Show (Bits n) Source # Instance detailsDefined in Basement.Bits MethodsshowsPrec :: Int -> Bits n -> ShowS Source #show :: Bits n -> String Source #showList :: [Bits n] -> ShowS Source # (PrimType ty, Show ty) => Show (UArray ty) Source # Instance detailsDefined in Basement.UArray.Base MethodsshowsPrec :: Int -> UArray ty -> ShowS Source #show :: UArray ty -> String Source #showList :: [UArray ty] -> ShowS Source # Show a => Show (Array a) Source # Instance detailsDefined in Basement.BoxedArray MethodsshowsPrec :: Int -> Array a -> ShowS Source #show :: Array a -> String Source #showList :: [Array a] -> ShowS Source # (Show a, Show b) => Show (Either a b) Since: base-3.0 Instance detailsDefined in Data.Either MethodsshowsPrec :: Int -> Either a b -> ShowS Source #show :: Either a b -> String Source #showList :: [Either a b] -> ShowS Source # Show (V1 p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> V1 p -> ShowS Source #show :: V1 p -> String Source #showList :: [V1 p] -> ShowS Source # Show (U1 p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> U1 p -> ShowS Source #show :: U1 p -> String Source #showList :: [U1 p] -> ShowS Source # Show (TypeRep a) Instance detailsDefined in Data.Typeable.Internal MethodsshowsPrec :: Int -> TypeRep a -> ShowS Source #show :: TypeRep a -> String Source #showList :: [TypeRep a] -> ShowS Source # (Show a, Show b) => Show (a, b) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b) -> ShowS Source #show :: (a, b) -> String Source #showList :: [(a, b)] -> ShowS Source # (Show a, Show b) => Show (Arg a b) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsshowsPrec :: Int -> Arg a b -> ShowS Source #show :: Arg a b -> String Source #showList :: [Arg a b] -> ShowS Source # Show (Proxy s) Since: base-4.7.0.0 Instance detailsDefined in Data.Proxy MethodsshowsPrec :: Int -> Proxy s -> ShowS Source #show :: Proxy s -> String Source #showList :: [Proxy s] -> ShowS Source # (Ix a, Show a, Show b) => Show (Array a b) Since: base-2.1 Instance detailsDefined in GHC.Arr MethodsshowsPrec :: Int -> Array a b -> ShowS Source #show :: Array a b -> String Source #showList :: [Array a b] -> ShowS Source # Show (ST s a) Since: base-2.1 Instance detailsDefined in GHC.ST MethodsshowsPrec :: Int -> ST s a -> ShowS Source #show :: ST s a -> String Source #showList :: [ST s a] -> ShowS Source # (Show a, Show b) => Show (These a b) Source # Instance detailsDefined in Basement.These MethodsshowsPrec :: Int -> These a b -> ShowS Source #show :: These a b -> String Source #showList :: [These a b] -> ShowS Source # Show a => Show (ListN n a) Source # Instance detailsDefined in Basement.Sized.List MethodsshowsPrec :: Int -> ListN n a -> ShowS Source #show :: ListN n a -> String Source #showList :: [ListN n a] -> ShowS Source # (PrimType a, Show a) => Show (BlockN n a) Source # Instance detailsDefined in Basement.Sized.Block MethodsshowsPrec :: Int -> BlockN n a -> ShowS Source #show :: BlockN n a -> String Source #showList :: [BlockN n a] -> ShowS Source # Show a => Show (Vect n a) Source # Instance detailsDefined in Basement.Sized.Vect MethodsshowsPrec :: Int -> Vect n a -> ShowS Source #show :: Vect n a -> String Source #showList :: [Vect n a] -> ShowS Source # (PrimType a, Show a) => Show (UVect n a) Source # Instance detailsDefined in Basement.Sized.UVect MethodsshowsPrec :: Int -> UVect n a -> ShowS Source #show :: UVect n a -> String Source #showList :: [UVect n a] -> ShowS Source # Show (f p) => Show (Rec1 f p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> Rec1 f p -> ShowS Source #show :: Rec1 f p -> String Source #showList :: [Rec1 f p] -> ShowS Source # Show (URec Char p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Char p -> ShowS Source #showList :: [URec Char p] -> ShowS Source # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowList :: [URec Double p] -> ShowS Source # Instance detailsDefined in GHC.Generics MethodsshowList :: [URec Float p] -> ShowS Source # Show (URec Int p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Int p -> ShowS Source #show :: URec Int p -> String Source #showList :: [URec Int p] -> ShowS Source # Show (URec Word p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> URec Word p -> ShowS Source #showList :: [URec Word p] -> ShowS Source # (Show a, Show b, Show c) => Show (a, b, c) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c) -> ShowS Source #show :: (a, b, c) -> String Source #showList :: [(a, b, c)] -> ShowS Source # Show a => Show (Const a b) This instance would be equivalent to the derived instances of the Const newtype if the getConst field were removedSince: base-4.8.0.0 Instance detailsDefined in Data.Functor.Const MethodsshowsPrec :: Int -> Const a b -> ShowS Source #show :: Const a b -> String Source #showList :: [Const a b] -> ShowS Source # Show (f a) => Show (Ap f a) Since: base-4.12.0.0 Instance detailsDefined in Data.Monoid MethodsshowsPrec :: Int -> Ap f a -> ShowS Source #show :: Ap f a -> String Source #showList :: [Ap f a] -> ShowS Source # Show (f a) => Show (Alt f a) Since: base-4.8.0.0 Instance detailsDefined in Data.Semigroup.Internal MethodsshowsPrec :: Int -> Alt f a -> ShowS Source #show :: Alt f a -> String Source #showList :: [Alt f a] -> ShowS Source # Show (Coercion a b) Since: base-4.7.0.0 Instance detailsDefined in Data.Type.Coercion MethodsshowsPrec :: Int -> Coercion a b -> ShowS Source #show :: Coercion a b -> String Source #showList :: [Coercion a b] -> ShowS Source # Show (a :~: b) Since: base-4.7.0.0 Instance detailsDefined in Data.Type.Equality MethodsshowsPrec :: Int -> (a :~: b) -> ShowS Source #show :: (a :~: b) -> String Source #showList :: [a :~: b] -> ShowS Source # Show c => Show (K1 i c p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> K1 i c p -> ShowS Source #show :: K1 i c p -> String Source #showList :: [K1 i c p] -> ShowS Source # (Show (f p), Show (g p)) => Show ((f :+: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> (f :+: g) p -> ShowS Source #show :: (f :+: g) p -> String Source #showList :: [(f :+: g) p] -> ShowS Source # (Show (f p), Show (g p)) => Show ((f :*: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> (f :*: g) p -> ShowS Source #show :: (f :*: g) p -> String Source #showList :: [(f :*: g) p] -> ShowS Source # (Show a, Show b, Show c, Show d) => Show (a, b, c, d) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d) -> ShowS Source #show :: (a, b, c, d) -> String Source #showList :: [(a, b, c, d)] -> ShowS Source # Show (a :~~: b) Since: base-4.10.0.0 Instance detailsDefined in Data.Type.Equality MethodsshowsPrec :: Int -> (a :~~: b) -> ShowS Source #show :: (a :~~: b) -> String Source #showList :: [a :~~: b] -> ShowS Source # Show (f p) => Show (M1 i c f p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> M1 i c f p -> ShowS Source #show :: M1 i c f p -> String Source #showList :: [M1 i c f p] -> ShowS Source # Show (f (g p)) => Show ((f :.: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics MethodsshowsPrec :: Int -> (f :.: g) p -> ShowS Source #show :: (f :.: g) p -> String Source #showList :: [(f :.: g) p] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e) => Show (a, b, c, d, e) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e) -> ShowS Source #show :: (a, b, c, d, e) -> String Source #showList :: [(a, b, c, d, e)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f) => Show (a, b, c, d, e, f) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f) -> ShowS Source #show :: (a, b, c, d, e, f) -> String Source #showList :: [(a, b, c, d, e, f)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g) => Show (a, b, c, d, e, f, g) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g) -> ShowS Source #show :: (a, b, c, d, e, f, g) -> String Source #showList :: [(a, b, c, d, e, f, g)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h) => Show (a, b, c, d, e, f, g, h) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h) -> ShowS Source #show :: (a, b, c, d, e, f, g, h) -> String Source #showList :: [(a, b, c, d, e, f, g, h)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i) => Show (a, b, c, d, e, f, g, h, i) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i) -> ShowS Source #show :: (a, b, c, d, e, f, g, h, i) -> String Source #showList :: [(a, b, c, d, e, f, g, h, i)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j) => Show (a, b, c, d, e, f, g, h, i, j) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j) -> ShowS Source #show :: (a, b, c, d, e, f, g, h, i, j) -> String Source #showList :: [(a, b, c, d, e, f, g, h, i, j)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k) => Show (a, b, c, d, e, f, g, h, i, j, k) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k) -> ShowS Source #show :: (a, b, c, d, e, f, g, h, i, j, k) -> String Source #showList :: [(a, b, c, d, e, f, g, h, i, j, k)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l) => Show (a, b, c, d, e, f, g, h, i, j, k, l) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l) -> ShowS Source #show :: (a, b, c, d, e, f, g, h, i, j, k, l) -> String Source #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l, Show m) => Show (a, b, c, d, e, f, g, h, i, j, k, l, m) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> ShowS Source #show :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> String Source #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l, Show m, Show n) => Show (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> ShowS Source #show :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> String Source #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n)] -> ShowS Source # (Show a, Show b, Show c, Show d, Show e, Show f, Show g, Show h, Show i, Show j, Show k, Show l, Show m, Show n, Show o) => Show (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Since: base-2.1 Instance detailsDefined in GHC.Show MethodsshowsPrec :: Int -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> ShowS Source #show :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> String Source #showList :: [(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o)] -> ShowS Source #

class Eq a => Ord a where 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.

The Haskell Report defines no laws for Ord. However, <= is customarily expected to implement a non-strict partial order and have the following properties:

Transitivity
if x <= y && y <= z = True, then x <= z = True
Reflexivity
x <= x = True
Antisymmetry
if x <= y && y <= x = True, then x == y = True

Note that the following operator interactions are expected to hold:

1. x >= y = y <= x
2. x < y = x <= y && x /= y
3. x > y = y < x
4. x < y = compare x y == LT
5. x > y = compare x y == GT
6. x == y = compare x y == EQ
7. min x y == if x <= y then x else y = True
8. max x y == if x >= y then x else y = True

Note that (7.) and (8.) do not require min and max to return either of their arguments. The result is merely required to equal one of the arguments in terms of (==).

Minimal complete definition: either compare or <=. Using compare can be more efficient for complex types.

Minimal complete definition

Methods

compare :: a -> a -> Ordering Source #

(<) :: a -> a -> Bool infix 4 Source #

(<=) :: a -> a -> Bool infix 4 Source #

(>) :: a -> a -> Bool infix 4 Source #

(>=) :: a -> a -> Bool infix 4 Source #

max :: a -> a -> a Source #

min :: a -> a -> a Source #

#### Instances

Instances details
 Instance detailsDefined in GHC.Classes Methods(<) :: Bool -> Bool -> Bool Source #(<=) :: Bool -> Bool -> Bool Source #(>) :: Bool -> Bool -> Bool Source #(>=) :: Bool -> Bool -> Bool Source #max :: Bool -> Bool -> Bool Source #min :: Bool -> Bool -> Bool Source # Instance detailsDefined in GHC.Classes Methods(<) :: Char -> Char -> Bool Source #(<=) :: Char -> Char -> Bool Source #(>) :: Char -> Char -> Bool Source #(>=) :: Char -> Char -> Bool Source #max :: Char -> Char -> Char Source #min :: Char -> Char -> Char Source # Note that due to the presence of NaN, Double's Ord instance does not satisfy reflexivity.>>> 0/0 <= (0/0 :: Double) False Also note that, due to the same, Ord's operator interactions are not respected by Double's instance:>>> (0/0 :: Double) > 1 False >>> compare (0/0 :: Double) 1 GT  Instance detailsDefined in GHC.Classes Methods Note that due to the presence of NaN, Float's Ord instance does not satisfy reflexivity.>>> 0/0 <= (0/0 :: Float) False Also note that, due to the same, Ord's operator interactions are not respected by Float's instance:>>> (0/0 :: Float) > 1 False >>> compare (0/0 :: Float) 1 GT  Instance detailsDefined in GHC.Classes Methods(<) :: Float -> Float -> Bool Source #(>) :: Float -> Float -> Bool Source # Instance detailsDefined in GHC.Classes Methods(<) :: Int -> Int -> Bool Source #(<=) :: Int -> Int -> Bool Source #(>) :: Int -> Int -> Bool Source #(>=) :: Int -> Int -> Bool Source #max :: Int -> Int -> Int Source #min :: Int -> Int -> Int Source # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(<) :: Int8 -> Int8 -> Bool Source #(<=) :: Int8 -> Int8 -> Bool Source #(>) :: Int8 -> Int8 -> Bool Source #(>=) :: Int8 -> Int8 -> Bool Source #max :: Int8 -> Int8 -> Int8 Source #min :: Int8 -> Int8 -> Int8 Source # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(<) :: Int16 -> Int16 -> Bool Source #(>) :: Int16 -> Int16 -> Bool Source # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(<) :: Int32 -> Int32 -> Bool Source #(>) :: Int32 -> Int32 -> Bool Source # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(<) :: Int64 -> Int64 -> Bool Source #(>) :: Int64 -> Int64 -> Bool Source # Instance detailsDefined in GHC.Integer.Type Methods Since: base-4.8.0.0 Instance detailsDefined in GHC.Natural Methods Instance detailsDefined in GHC.Classes Methods Instance detailsDefined in GHC.Classes Methods(<) :: Word -> Word -> Bool Source #(<=) :: Word -> Word -> Bool Source #(>) :: Word -> Word -> Bool Source #(>=) :: Word -> Word -> Bool Source #max :: Word -> Word -> Word Source #min :: Word -> Word -> Word Source # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(<) :: Word8 -> Word8 -> Bool Source #(>) :: Word8 -> Word8 -> Bool Source # 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 Data.Typeable.Internal Methods Ord () Instance detailsDefined in GHC.Classes Methodscompare :: () -> () -> Ordering Source #(<) :: () -> () -> Bool Source #(<=) :: () -> () -> Bool Source #(>) :: () -> () -> Bool Source #(>=) :: () -> () -> Bool Source #max :: () -> () -> () Source #min :: () -> () -> () Source # Instance detailsDefined in GHC.Classes Methods(<) :: TyCon -> TyCon -> Bool Source #(>) :: TyCon -> TyCon -> Bool Source # Since: base-2.1 Instance detailsDefined in Data.Version Methods Instance detailsDefined in System.Posix.Types Methods(<) :: CDev -> CDev -> Bool Source #(<=) :: CDev -> CDev -> Bool Source #(>) :: CDev -> CDev -> Bool Source #(>=) :: CDev -> CDev -> Bool Source #max :: CDev -> CDev -> CDev Source #min :: CDev -> CDev -> CDev Source # Instance detailsDefined in System.Posix.Types Methods(<) :: CIno -> CIno -> Bool Source #(<=) :: CIno -> CIno -> Bool Source #(>) :: CIno -> CIno -> Bool Source #(>=) :: CIno -> CIno -> Bool Source #max :: CIno -> CIno -> CIno Source #min :: CIno -> CIno -> CIno Source # Instance detailsDefined in System.Posix.Types Methods(<) :: CMode -> CMode -> Bool Source #(>) :: CMode -> CMode -> Bool Source # Instance detailsDefined in System.Posix.Types Methods(<) :: COff -> COff -> Bool Source #(<=) :: COff -> COff -> Bool Source #(>) :: COff -> COff -> Bool Source #(>=) :: COff -> COff -> Bool Source #max :: COff -> COff -> COff Source #min :: COff -> COff -> COff Source # Instance detailsDefined in System.Posix.Types Methods(<) :: CPid -> CPid -> Bool Source #(<=) :: CPid -> CPid -> Bool Source #(>) :: CPid -> CPid -> Bool Source #(>=) :: CPid -> CPid -> Bool Source #max :: CPid -> CPid -> CPid Source #min :: CPid -> CPid -> CPid Source # Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods(<) :: CGid -> CGid -> Bool Source #(<=) :: CGid -> CGid -> Bool Source #(>) :: CGid -> CGid -> Bool Source #(>=) :: CGid -> CGid -> Bool Source #max :: CGid -> CGid -> CGid Source #min :: CGid -> CGid -> CGid Source # Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods(<) :: CUid -> CUid -> Bool Source #(<=) :: CUid -> CUid -> Bool Source #(>) :: CUid -> CUid -> Bool Source #(>=) :: CUid -> CUid -> Bool Source #max :: CUid -> CUid -> CUid Source #min :: CUid -> CUid -> CUid Source # Instance detailsDefined in System.Posix.Types Methods(<) :: CCc -> CCc -> Bool Source #(<=) :: CCc -> CCc -> Bool Source #(>) :: CCc -> CCc -> Bool Source #(>=) :: CCc -> CCc -> Bool Source #max :: CCc -> CCc -> CCc Source #min :: CCc -> CCc -> CCc Source # Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods(<) :: CRLim -> CRLim -> Bool Source #(>) :: CRLim -> CRLim -> Bool Source # Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods(<) :: CId -> CId -> Bool Source #(<=) :: CId -> CId -> Bool Source #(>) :: CId -> CId -> Bool Source #(>=) :: CId -> CId -> Bool Source #max :: CId -> CId -> CId Source #min :: CId -> CId -> CId Source # Instance detailsDefined in System.Posix.Types Methods(<) :: CKey -> CKey -> Bool Source #(<=) :: CKey -> CKey -> Bool Source #(>) :: CKey -> CKey -> Bool Source #(>=) :: CKey -> CKey -> Bool Source #max :: CKey -> CKey -> CKey Source #min :: CKey -> CKey -> CKey Source # Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods(<) :: CNfds -> CNfds -> Bool Source #(>) :: CNfds -> CNfds -> Bool Source # Instance detailsDefined in System.Posix.Types Methods(<) :: Fd -> Fd -> Bool Source #(<=) :: Fd -> Fd -> Bool Source #(>) :: Fd -> Fd -> Bool Source #(>=) :: Fd -> Fd -> Bool Source #max :: Fd -> Fd -> Fd Source #min :: Fd -> Fd -> Fd Source # Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.Exception Methods Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.7.0.0 Instance detailsDefined in GHC.Exception Methods Since: base-3.0 Instance detailsDefined in GHC.Exception.Type Methods Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods(<) :: All -> All -> Bool Source #(<=) :: All -> All -> Bool Source #(>) :: All -> All -> Bool Source #(>=) :: All -> All -> Bool Source #max :: All -> All -> All Source #min :: All -> All -> All Source # Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods(<) :: Any -> Any -> Bool Source #(<=) :: Any -> Any -> Bool Source #(>) :: Any -> Any -> Bool Source #(>=) :: Any -> Any -> Bool Source #max :: Any -> Any -> Any Source #min :: Any -> Any -> Any Source # Since: base-4.6.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.6.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.7.0.0 Instance detailsDefined in GHC.TypeLits Methods Since: base-4.7.0.0 Instance detailsDefined in GHC.TypeNats Methods Instance detailsDefined in Foreign.C.Types Methods(<) :: CChar -> CChar -> Bool Source #(>) :: CChar -> CChar -> Bool Source # 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(<) :: CInt -> CInt -> Bool Source #(<=) :: CInt -> CInt -> Bool Source #(>) :: CInt -> CInt -> Bool Source #(>=) :: CInt -> CInt -> Bool Source #max :: CInt -> CInt -> CInt Source #min :: CInt -> CInt -> CInt Source # Instance detailsDefined in Foreign.C.Types Methods(<) :: CUInt -> CUInt -> Bool Source #(>) :: CUInt -> CUInt -> Bool Source # Instance detailsDefined in Foreign.C.Types Methods(<) :: CLong -> CLong -> Bool Source #(>) :: CLong -> CLong -> Bool Source # 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(<) :: CBool -> CBool -> Bool Source #(>) :: CBool -> CBool -> Bool Source # 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(<) :: CSize -> CSize -> Bool Source #(>) :: CSize -> CSize -> Bool Source # 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(<) :: CTime -> CTime -> Bool Source #(>) :: CTime -> CTime -> Bool Source # 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.Ptr Methods Instance detailsDefined in Foreign.Ptr Methods Since: base-2.1 Instance detailsDefined in GHC.Unicode Methods Instance detailsDefined in GHC.Integer.Type Methods Source # Instance detailsDefined in Basement.Types.Char7 Methods(<) :: Char7 -> Char7 -> Bool Source #(>) :: Char7 -> Char7 -> Bool Source # Source # Instance detailsDefined in Basement.Types.Word128 Methods Source # Instance detailsDefined in Basement.Types.Word256 Methods Source # Instance detailsDefined in Basement.Types.OffsetSize Methods Source # Instance detailsDefined in Basement.Types.Ptr Methods(<) :: Addr -> Addr -> Bool Source #(<=) :: Addr -> Addr -> Bool Source #(>) :: Addr -> Addr -> Bool Source #(>=) :: Addr -> Addr -> Bool Source #max :: Addr -> Addr -> Addr Source #min :: Addr -> Addr -> Addr Source # Source # Instance detailsDefined in Basement.Types.AsciiString Methods Source # Instance detailsDefined in Basement.String.Encoding.UTF32 Methods Source # Instance detailsDefined in Basement.UTF8.Base Methods Source # Instance detailsDefined in Basement.String Methods Ord a => Ord [a] Instance detailsDefined in GHC.Classes Methodscompare :: [a] -> [a] -> Ordering Source #(<) :: [a] -> [a] -> Bool Source #(<=) :: [a] -> [a] -> Bool Source #(>) :: [a] -> [a] -> Bool Source #(>=) :: [a] -> [a] -> Bool Source #max :: [a] -> [a] -> [a] Source #min :: [a] -> [a] -> [a] Source # Ord a => Ord (Maybe a) Since: base-2.1 Instance detailsDefined in GHC.Maybe Methodscompare :: Maybe a -> Maybe a -> Ordering Source #(<) :: Maybe a -> Maybe a -> Bool Source #(<=) :: Maybe a -> Maybe a -> Bool Source #(>) :: Maybe a -> Maybe a -> Bool Source #(>=) :: Maybe a -> Maybe a -> Bool Source #max :: Maybe a -> Maybe a -> Maybe a Source #min :: Maybe a -> Maybe a -> Maybe a Source # Integral a => Ord (Ratio a) Since: base-2.0.1 Instance detailsDefined in GHC.Real Methodscompare :: Ratio a -> Ratio a -> Ordering Source #(<) :: Ratio a -> Ratio a -> Bool Source #(<=) :: Ratio a -> Ratio a -> Bool Source #(>) :: Ratio a -> Ratio a -> Bool Source #(>=) :: Ratio a -> Ratio a -> Bool Source #max :: Ratio a -> Ratio a -> Ratio a Source #min :: Ratio a -> Ratio a -> Ratio a Source # Ord (Ptr a) Since: base-2.1 Instance detailsDefined in GHC.Ptr Methodscompare :: Ptr a -> Ptr a -> Ordering Source #(<) :: Ptr a -> Ptr a -> Bool Source #(<=) :: Ptr a -> Ptr a -> Bool Source #(>) :: Ptr a -> Ptr a -> Bool Source #(>=) :: Ptr a -> Ptr a -> Bool Source #max :: Ptr a -> Ptr a -> Ptr a Source #min :: Ptr a -> Ptr a -> Ptr a Source # Ord (FunPtr a) Instance detailsDefined in GHC.Ptr Methodscompare :: FunPtr a -> FunPtr a -> Ordering Source #(<) :: FunPtr a -> FunPtr a -> Bool Source #(<=) :: FunPtr a -> FunPtr a -> Bool Source #(>) :: FunPtr a -> FunPtr a -> Bool Source #(>=) :: FunPtr a -> FunPtr a -> Bool Source #max :: FunPtr a -> FunPtr a -> FunPtr a Source #min :: FunPtr a -> FunPtr a -> FunPtr a Source # Ord p => Ord (Par1 p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: Par1 p -> Par1 p -> Ordering Source #(<) :: Par1 p -> Par1 p -> Bool Source #(<=) :: Par1 p ->