basement-0.0.12: Foundation scrap box of array & string

Basement.Imports

Description

re-export of all the base prelude and basic primitive stuffs

Synopsis

# Documentation

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

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 #

Boolean "and", lazy in the second argument

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

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 #

morphism composition

(<$>) :: Functor f => (a -> b) -> f a -> f b infixl 4 # 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)


not :: Bool -> Bool #

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 #

Extract the first component of a pair.

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

Extract the second component of a pair.

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

the identity morphism

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

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 #

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 #

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

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


const :: a -> b -> a #

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). forall (a :: TYPE r). HasCallStack => String -> a Source #

stop execution and displays an error message

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

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 #

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 #

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 #

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

#### Instances

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

show :: Show a => a -> String Source #

Use the Show class to create a String.

Note that this is not efficient, since an intermediate [Char] is going to be created before turning into a real String.

class Eq a => Ord a where #

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 #

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

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

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

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

max :: a -> a -> a #

min :: a -> a -> a #

#### Instances

Instances details
 Instance detailsDefined in GHC.Classes Methodscompare :: Bool -> Bool -> Ordering #(<) :: Bool -> Bool -> Bool #(<=) :: Bool -> Bool -> Bool #(>) :: Bool -> Bool -> Bool #(>=) :: Bool -> Bool -> Bool #max :: Bool -> Bool -> Bool #min :: Bool -> Bool -> Bool # Instance detailsDefined in GHC.Classes Methodscompare :: Char -> Char -> Ordering #(<) :: Char -> Char -> Bool #(<=) :: Char -> Char -> Bool #(>) :: Char -> Char -> Bool #(>=) :: Char -> Char -> Bool #max :: Char -> Char -> Char #min :: Char -> Char -> Char # 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(<) :: Double -> Double -> Bool #(<=) :: Double -> Double -> Bool #(>) :: Double -> Double -> Bool #(>=) :: Double -> Double -> Bool #max :: Double -> Double -> Double #min :: Double -> Double -> Double # 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 #(<=) :: Float -> Float -> Bool #(>) :: Float -> Float -> Bool #(>=) :: Float -> Float -> Bool #max :: Float -> Float -> Float #min :: Float -> Float -> Float # Instance detailsDefined in GHC.Classes Methodscompare :: Int -> Int -> Ordering #(<) :: Int -> Int -> Bool #(<=) :: Int -> Int -> Bool #(>) :: Int -> Int -> Bool #(>=) :: Int -> Int -> Bool #max :: Int -> Int -> Int #min :: Int -> Int -> Int # Since: base-2.1 Instance detailsDefined in GHC.Int Methodscompare :: Int8 -> Int8 -> Ordering #(<) :: Int8 -> Int8 -> Bool #(<=) :: Int8 -> Int8 -> Bool #(>) :: Int8 -> Int8 -> Bool #(>=) :: Int8 -> Int8 -> Bool #max :: Int8 -> Int8 -> Int8 #min :: Int8 -> Int8 -> Int8 # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(<) :: Int16 -> Int16 -> Bool #(<=) :: Int16 -> Int16 -> Bool #(>) :: Int16 -> Int16 -> Bool #(>=) :: Int16 -> Int16 -> Bool #max :: Int16 -> Int16 -> Int16 #min :: Int16 -> Int16 -> Int16 # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(<) :: Int32 -> Int32 -> Bool #(<=) :: Int32 -> Int32 -> Bool #(>) :: Int32 -> Int32 -> Bool #(>=) :: Int32 -> Int32 -> Bool #max :: Int32 -> Int32 -> Int32 #min :: Int32 -> Int32 -> Int32 # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(<) :: Int64 -> Int64 -> Bool #(<=) :: Int64 -> Int64 -> Bool #(>) :: Int64 -> Int64 -> Bool #(>=) :: Int64 -> Int64 -> Bool #max :: Int64 -> Int64 -> Int64 #min :: Int64 -> Int64 -> Int64 # Instance detailsDefined in GHC.Integer.Type Methods(<) :: Integer -> Integer -> Bool #(<=) :: Integer -> Integer -> Bool #(>) :: Integer -> Integer -> Bool #(>=) :: Integer -> Integer -> Bool # Since: base-4.8.0.0 Instance detailsDefined in GHC.Natural Methods(<) :: Natural -> Natural -> Bool #(<=) :: Natural -> Natural -> Bool #(>) :: Natural -> Natural -> Bool #(>=) :: Natural -> Natural -> Bool # Instance detailsDefined in GHC.Classes Methods(<) :: Ordering -> Ordering -> Bool #(>) :: Ordering -> Ordering -> Bool # Instance detailsDefined in GHC.Classes Methodscompare :: Word -> Word -> Ordering #(<) :: Word -> Word -> Bool #(<=) :: Word -> Word -> Bool #(>) :: Word -> Word -> Bool #(>=) :: Word -> Word -> Bool #max :: Word -> Word -> Word #min :: Word -> Word -> Word # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(<) :: Word8 -> Word8 -> Bool #(<=) :: Word8 -> Word8 -> Bool #(>) :: Word8 -> Word8 -> Bool #(>=) :: Word8 -> Word8 -> Bool #max :: Word8 -> Word8 -> Word8 #min :: Word8 -> Word8 -> Word8 # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(<) :: Word16 -> Word16 -> Bool #(<=) :: Word16 -> Word16 -> Bool #(>) :: Word16 -> Word16 -> Bool #(>=) :: Word16 -> Word16 -> Bool #max :: Word16 -> Word16 -> Word16 #min :: Word16 -> Word16 -> Word16 # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(<) :: Word32 -> Word32 -> Bool #(<=) :: Word32 -> Word32 -> Bool #(>) :: Word32 -> Word32 -> Bool #(>=) :: Word32 -> Word32 -> Bool #max :: Word32 -> Word32 -> Word32 #min :: Word32 -> Word32 -> Word32 # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(<) :: Word64 -> Word64 -> Bool #(<=) :: Word64 -> Word64 -> Bool #(>) :: Word64 -> Word64 -> Bool #(>=) :: Word64 -> Word64 -> Bool #max :: Word64 -> Word64 -> Word64 #min :: Word64 -> Word64 -> Word64 # Instance detailsDefined in Data.Typeable.Internal Methods Ord () Instance detailsDefined in GHC.Classes Methodscompare :: () -> () -> Ordering #(<) :: () -> () -> Bool #(<=) :: () -> () -> Bool #(>) :: () -> () -> Bool #(>=) :: () -> () -> Bool #max :: () -> () -> () #min :: () -> () -> () # Instance detailsDefined in GHC.Classes Methods(<) :: TyCon -> TyCon -> Bool #(<=) :: TyCon -> TyCon -> Bool #(>) :: TyCon -> TyCon -> Bool #(>=) :: TyCon -> TyCon -> Bool #max :: TyCon -> TyCon -> TyCon #min :: TyCon -> TyCon -> TyCon # Since: base-2.1 Instance detailsDefined in Data.Version Methods(<) :: Version -> Version -> Bool #(<=) :: Version -> Version -> Bool #(>) :: Version -> Version -> Bool #(>=) :: Version -> Version -> Bool # Instance detailsDefined in System.Posix.Types Methodscompare :: CDev -> CDev -> Ordering #(<) :: CDev -> CDev -> Bool #(<=) :: CDev -> CDev -> Bool #(>) :: CDev -> CDev -> Bool #(>=) :: CDev -> CDev -> Bool #max :: CDev -> CDev -> CDev #min :: CDev -> CDev -> CDev # Instance detailsDefined in System.Posix.Types Methodscompare :: CIno -> CIno -> Ordering #(<) :: CIno -> CIno -> Bool #(<=) :: CIno -> CIno -> Bool #(>) :: CIno -> CIno -> Bool #(>=) :: CIno -> CIno -> Bool #max :: CIno -> CIno -> CIno #min :: CIno -> CIno -> CIno # Instance detailsDefined in System.Posix.Types Methods(<) :: CMode -> CMode -> Bool #(<=) :: CMode -> CMode -> Bool #(>) :: CMode -> CMode -> Bool #(>=) :: CMode -> CMode -> Bool #max :: CMode -> CMode -> CMode #min :: CMode -> CMode -> CMode # Instance detailsDefined in System.Posix.Types Methodscompare :: COff -> COff -> Ordering #(<) :: COff -> COff -> Bool #(<=) :: COff -> COff -> Bool #(>) :: COff -> COff -> Bool #(>=) :: COff -> COff -> Bool #max :: COff -> COff -> COff #min :: COff -> COff -> COff # Instance detailsDefined in System.Posix.Types Methodscompare :: CPid -> CPid -> Ordering #(<) :: CPid -> CPid -> Bool #(<=) :: CPid -> CPid -> Bool #(>) :: CPid -> CPid -> Bool #(>=) :: CPid -> CPid -> Bool #max :: CPid -> CPid -> CPid #min :: CPid -> CPid -> CPid # Instance detailsDefined in System.Posix.Types Methods(<) :: CSsize -> CSsize -> Bool #(<=) :: CSsize -> CSsize -> Bool #(>) :: CSsize -> CSsize -> Bool #(>=) :: CSsize -> CSsize -> Bool #max :: CSsize -> CSsize -> CSsize #min :: CSsize -> CSsize -> CSsize # Instance detailsDefined in System.Posix.Types Methodscompare :: CGid -> CGid -> Ordering #(<) :: CGid -> CGid -> Bool #(<=) :: CGid -> CGid -> Bool #(>) :: CGid -> CGid -> Bool #(>=) :: CGid -> CGid -> Bool #max :: CGid -> CGid -> CGid #min :: CGid -> CGid -> CGid # Instance detailsDefined in System.Posix.Types Methods(<) :: CNlink -> CNlink -> Bool #(<=) :: CNlink -> CNlink -> Bool #(>) :: CNlink -> CNlink -> Bool #(>=) :: CNlink -> CNlink -> Bool #max :: CNlink -> CNlink -> CNlink #min :: CNlink -> CNlink -> CNlink # Instance detailsDefined in System.Posix.Types Methodscompare :: CUid -> CUid -> Ordering #(<) :: CUid -> CUid -> Bool #(<=) :: CUid -> CUid -> Bool #(>) :: CUid -> CUid -> Bool #(>=) :: CUid -> CUid -> Bool #max :: CUid -> CUid -> CUid #min :: CUid -> CUid -> CUid # Instance detailsDefined in System.Posix.Types Methodscompare :: CCc -> CCc -> Ordering #(<) :: CCc -> CCc -> Bool #(<=) :: CCc -> CCc -> Bool #(>) :: CCc -> CCc -> Bool #(>=) :: CCc -> CCc -> Bool #max :: CCc -> CCc -> CCc #min :: CCc -> CCc -> CCc # Instance detailsDefined in System.Posix.Types Methods(<) :: CSpeed -> CSpeed -> Bool #(<=) :: CSpeed -> CSpeed -> Bool #(>) :: CSpeed -> CSpeed -> Bool #(>=) :: CSpeed -> CSpeed -> Bool #max :: CSpeed -> CSpeed -> CSpeed #min :: CSpeed -> CSpeed -> CSpeed # Instance detailsDefined in System.Posix.Types Methods(<) :: CTcflag -> CTcflag -> Bool #(<=) :: CTcflag -> CTcflag -> Bool #(>) :: CTcflag -> CTcflag -> Bool #(>=) :: CTcflag -> CTcflag -> Bool # Instance detailsDefined in System.Posix.Types Methods(<) :: CRLim -> CRLim -> Bool #(<=) :: CRLim -> CRLim -> Bool #(>) :: CRLim -> CRLim -> Bool #(>=) :: CRLim -> CRLim -> Bool #max :: CRLim -> CRLim -> CRLim #min :: CRLim -> CRLim -> CRLim # Instance detailsDefined in System.Posix.Types Methods(<) :: CBlkSize -> CBlkSize -> Bool #(>) :: CBlkSize -> CBlkSize -> Bool # Instance detailsDefined in System.Posix.Types Methods(<) :: CBlkCnt -> CBlkCnt -> Bool #(<=) :: CBlkCnt -> CBlkCnt -> Bool #(>) :: CBlkCnt -> CBlkCnt -> Bool #(>=) :: CBlkCnt -> CBlkCnt -> Bool # Instance detailsDefined in System.Posix.Types Methods(<) :: CClockId -> CClockId -> Bool #(>) :: CClockId -> CClockId -> Bool # Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methodscompare :: CId -> CId -> Ordering #(<) :: CId -> CId -> Bool #(<=) :: CId -> CId -> Bool #(>) :: CId -> CId -> Bool #(>=) :: CId -> CId -> Bool #max :: CId -> CId -> CId #min :: CId -> CId -> CId # Instance detailsDefined in System.Posix.Types Methodscompare :: CKey -> CKey -> Ordering #(<) :: CKey -> CKey -> Bool #(<=) :: CKey -> CKey -> Bool #(>) :: CKey -> CKey -> Bool #(>=) :: CKey -> CKey -> Bool #max :: CKey -> CKey -> CKey #min :: CKey -> CKey -> CKey # Instance detailsDefined in System.Posix.Types Methods(<) :: CTimer -> CTimer -> Bool #(<=) :: CTimer -> CTimer -> Bool #(>) :: CTimer -> CTimer -> Bool #(>=) :: CTimer -> CTimer -> Bool #max :: CTimer -> CTimer -> CTimer #min :: CTimer -> CTimer -> CTimer # Instance detailsDefined in System.Posix.Types Methods(<) :: CSocklen -> CSocklen -> Bool #(>) :: CSocklen -> CSocklen -> Bool # Instance detailsDefined in System.Posix.Types Methods(<) :: CNfds -> CNfds -> Bool #(<=) :: CNfds -> CNfds -> Bool #(>) :: CNfds -> CNfds -> Bool #(>=) :: CNfds -> CNfds -> Bool #max :: CNfds -> CNfds -> CNfds #min :: CNfds -> CNfds -> CNfds # Instance detailsDefined in System.Posix.Types Methodscompare :: Fd -> Fd -> Ordering #(<) :: Fd -> Fd -> Bool #(<=) :: Fd -> Fd -> Bool #(>) :: Fd -> Fd -> Bool #(>=) :: Fd -> Fd -> Bool #max :: Fd -> Fd -> Fd #min :: Fd -> Fd -> Fd # 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(<) :: ExitCode -> ExitCode -> Bool #(>) :: ExitCode -> ExitCode -> Bool # 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 Methodscompare :: All -> All -> Ordering #(<) :: All -> All -> Bool #(<=) :: All -> All -> Bool #(>) :: All -> All -> Bool #(>=) :: All -> All -> Bool #max :: All -> All -> All #min :: All -> All -> All # Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methodscompare :: Any -> Any -> Ordering #(<) :: Any -> Any -> Bool #(<=) :: Any -> Any -> Bool #(>) :: Any -> Any -> Bool #(>=) :: Any -> Any -> Bool #max :: Any -> Any -> Any #min :: Any -> Any -> Any # Since: base-4.6.0.0 Instance detailsDefined in GHC.Generics Methods(<) :: Fixity -> Fixity -> Bool #(<=) :: Fixity -> Fixity -> Bool #(>) :: Fixity -> Fixity -> Bool #(>=) :: Fixity -> Fixity -> Bool #max :: Fixity -> Fixity -> Fixity #min :: Fixity -> Fixity -> Fixity # 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(<) :: SomeNat -> SomeNat -> Bool #(<=) :: SomeNat -> SomeNat -> Bool #(>) :: SomeNat -> SomeNat -> Bool #(>=) :: SomeNat -> SomeNat -> Bool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CChar -> CChar -> Bool #(<=) :: CChar -> CChar -> Bool #(>) :: CChar -> CChar -> Bool #(>=) :: CChar -> CChar -> Bool #max :: CChar -> CChar -> CChar #min :: CChar -> CChar -> CChar # Instance detailsDefined in Foreign.C.Types Methods(<) :: CSChar -> CSChar -> Bool #(<=) :: CSChar -> CSChar -> Bool #(>) :: CSChar -> CSChar -> Bool #(>=) :: CSChar -> CSChar -> Bool #max :: CSChar -> CSChar -> CSChar #min :: CSChar -> CSChar -> CSChar # Instance detailsDefined in Foreign.C.Types Methods(<) :: CUChar -> CUChar -> Bool #(<=) :: CUChar -> CUChar -> Bool #(>) :: CUChar -> CUChar -> Bool #(>=) :: CUChar -> CUChar -> Bool #max :: CUChar -> CUChar -> CUChar #min :: CUChar -> CUChar -> CUChar # Instance detailsDefined in Foreign.C.Types Methods(<) :: CShort -> CShort -> Bool #(<=) :: CShort -> CShort -> Bool #(>) :: CShort -> CShort -> Bool #(>=) :: CShort -> CShort -> Bool #max :: CShort -> CShort -> CShort #min :: CShort -> CShort -> CShort # Instance detailsDefined in Foreign.C.Types Methods(<) :: CUShort -> CUShort -> Bool #(<=) :: CUShort -> CUShort -> Bool #(>) :: CUShort -> CUShort -> Bool #(>=) :: CUShort -> CUShort -> Bool # Instance detailsDefined in Foreign.C.Types Methodscompare :: CInt -> CInt -> Ordering #(<) :: CInt -> CInt -> Bool #(<=) :: CInt -> CInt -> Bool #(>) :: CInt -> CInt -> Bool #(>=) :: CInt -> CInt -> Bool #max :: CInt -> CInt -> CInt #min :: CInt -> CInt -> CInt # Instance detailsDefined in Foreign.C.Types Methods(<) :: CUInt -> CUInt -> Bool #(<=) :: CUInt -> CUInt -> Bool #(>) :: CUInt -> CUInt -> Bool #(>=) :: CUInt -> CUInt -> Bool #max :: CUInt -> CUInt -> CUInt #min :: CUInt -> CUInt -> CUInt # Instance detailsDefined in Foreign.C.Types Methods(<) :: CLong -> CLong -> Bool #(<=) :: CLong -> CLong -> Bool #(>) :: CLong -> CLong -> Bool #(>=) :: CLong -> CLong -> Bool #max :: CLong -> CLong -> CLong #min :: CLong -> CLong -> CLong # Instance detailsDefined in Foreign.C.Types Methods(<) :: CULong -> CULong -> Bool #(<=) :: CULong -> CULong -> Bool #(>) :: CULong -> CULong -> Bool #(>=) :: CULong -> CULong -> Bool #max :: CULong -> CULong -> CULong #min :: CULong -> CULong -> CULong # Instance detailsDefined in Foreign.C.Types Methods(<) :: CLLong -> CLLong -> Bool #(<=) :: CLLong -> CLLong -> Bool #(>) :: CLLong -> CLLong -> Bool #(>=) :: CLLong -> CLLong -> Bool #max :: CLLong -> CLLong -> CLLong #min :: CLLong -> CLLong -> CLLong # Instance detailsDefined in Foreign.C.Types Methods(<) :: CULLong -> CULLong -> Bool #(<=) :: CULLong -> CULLong -> Bool #(>) :: CULLong -> CULLong -> Bool #(>=) :: CULLong -> CULLong -> Bool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CBool -> CBool -> Bool #(<=) :: CBool -> CBool -> Bool #(>) :: CBool -> CBool -> Bool #(>=) :: CBool -> CBool -> Bool #max :: CBool -> CBool -> CBool #min :: CBool -> CBool -> CBool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CFloat -> CFloat -> Bool #(<=) :: CFloat -> CFloat -> Bool #(>) :: CFloat -> CFloat -> Bool #(>=) :: CFloat -> CFloat -> Bool #max :: CFloat -> CFloat -> CFloat #min :: CFloat -> CFloat -> CFloat # Instance detailsDefined in Foreign.C.Types Methods(<) :: CDouble -> CDouble -> Bool #(<=) :: CDouble -> CDouble -> Bool #(>) :: CDouble -> CDouble -> Bool #(>=) :: CDouble -> CDouble -> Bool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CPtrdiff -> CPtrdiff -> Bool #(>) :: CPtrdiff -> CPtrdiff -> Bool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CSize -> CSize -> Bool #(<=) :: CSize -> CSize -> Bool #(>) :: CSize -> CSize -> Bool #(>=) :: CSize -> CSize -> Bool #max :: CSize -> CSize -> CSize #min :: CSize -> CSize -> CSize # Instance detailsDefined in Foreign.C.Types Methods(<) :: CWchar -> CWchar -> Bool #(<=) :: CWchar -> CWchar -> Bool #(>) :: CWchar -> CWchar -> Bool #(>=) :: CWchar -> CWchar -> Bool #max :: CWchar -> CWchar -> CWchar #min :: CWchar -> CWchar -> CWchar # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods(<) :: CClock -> CClock -> Bool #(<=) :: CClock -> CClock -> Bool #(>) :: CClock -> CClock -> Bool #(>=) :: CClock -> CClock -> Bool #max :: CClock -> CClock -> CClock #min :: CClock -> CClock -> CClock # Instance detailsDefined in Foreign.C.Types Methods(<) :: CTime -> CTime -> Bool #(<=) :: CTime -> CTime -> Bool #(>) :: CTime -> CTime -> Bool #(>=) :: CTime -> CTime -> Bool #max :: CTime -> CTime -> CTime #min :: CTime -> CTime -> CTime # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods(<) :: CIntPtr -> CIntPtr -> Bool #(<=) :: CIntPtr -> CIntPtr -> Bool #(>) :: CIntPtr -> CIntPtr -> Bool #(>=) :: CIntPtr -> CIntPtr -> Bool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CUIntPtr -> CUIntPtr -> Bool #(>) :: CUIntPtr -> CUIntPtr -> Bool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CIntMax -> CIntMax -> Bool #(<=) :: CIntMax -> CIntMax -> Bool #(>) :: CIntMax -> CIntMax -> Bool #(>=) :: CIntMax -> CIntMax -> Bool # Instance detailsDefined in Foreign.C.Types Methods(<) :: CUIntMax -> CUIntMax -> Bool #(>) :: CUIntMax -> CUIntMax -> Bool # Instance detailsDefined in Foreign.Ptr Methods(<) :: WordPtr -> WordPtr -> Bool #(<=) :: WordPtr -> WordPtr -> Bool #(>) :: WordPtr -> WordPtr -> Bool #(>=) :: WordPtr -> WordPtr -> Bool # Instance detailsDefined in Foreign.Ptr Methods(<) :: IntPtr -> IntPtr -> Bool #(<=) :: IntPtr -> IntPtr -> Bool #(>) :: IntPtr -> IntPtr -> Bool #(>=) :: IntPtr -> IntPtr -> Bool #max :: IntPtr -> IntPtr -> IntPtr #min :: IntPtr -> IntPtr -> IntPtr # Since: base-2.1 Instance detailsDefined in GHC.Unicode Methods Instance detailsDefined in GHC.Integer.Type Methods(<) :: BigNat -> BigNat -> Bool #(<=) :: BigNat -> BigNat -> Bool #(>) :: BigNat -> BigNat -> Bool #(>=) :: BigNat -> BigNat -> Bool #max :: BigNat -> BigNat -> BigNat #min :: BigNat -> BigNat -> BigNat # Source # Instance detailsDefined in Basement.Types.Char7 Methods(<) :: Char7 -> Char7 -> Bool #(<=) :: Char7 -> Char7 -> Bool #(>) :: Char7 -> Char7 -> Bool #(>=) :: Char7 -> Char7 -> Bool #max :: Char7 -> Char7 -> Char7 #min :: Char7 -> Char7 -> Char7 # Source # Instance detailsDefined in Basement.Types.Word128 Methods(<) :: Word128 -> Word128 -> Bool #(<=) :: Word128 -> Word128 -> Bool #(>) :: Word128 -> Word128 -> Bool #(>=) :: Word128 -> Word128 -> Bool # Source # Instance detailsDefined in Basement.Types.Word256 Methods(<) :: Word256 -> Word256 -> Bool #(<=) :: Word256 -> Word256 -> Bool #(>) :: Word256 -> Word256 -> Bool #(>=) :: Word256 -> Word256 -> Bool # Source # Instance detailsDefined in Basement.Types.OffsetSize Methods(<) :: FileSize -> FileSize -> Bool #(>) :: FileSize -> FileSize -> Bool # Source # Instance detailsDefined in Basement.Types.Ptr Methodscompare :: Addr -> Addr -> Ordering #(<) :: Addr -> Addr -> Bool #(<=) :: Addr -> Addr -> Bool #(>) :: Addr -> Addr -> Bool #(>=) :: Addr -> Addr -> Bool #max :: Addr -> Addr -> Addr #min :: Addr -> Addr -> Addr # Source # Instance detailsDefined in Basement.Types.AsciiString Methods Source # Instance detailsDefined in Basement.UTF8.Base Methods(<) :: String -> String -> Bool #(<=) :: String -> String -> Bool #(>) :: String -> String -> Bool #(>=) :: String -> String -> Bool #max :: String -> String -> String #min :: String -> String -> String # Source # Instance detailsDefined in Basement.String Methods(<) :: Encoding -> Encoding -> Bool #(>) :: Encoding -> Encoding -> Bool # Ord a => Ord [a] Instance detailsDefined in GHC.Classes Methodscompare :: [a] -> [a] -> Ordering #(<) :: [a] -> [a] -> Bool #(<=) :: [a] -> [a] -> Bool #(>) :: [a] -> [a] -> Bool #(>=) :: [a] -> [a] -> Bool #max :: [a] -> [a] -> [a] #min :: [a] -> [a] -> [a] # Ord a => Ord (Maybe a) Since: base-2.1 Instance detailsDefined in GHC.Maybe Methodscompare :: Maybe a -> Maybe a -> Ordering #(<) :: Maybe a -> Maybe a -> Bool #(<=) :: Maybe a -> Maybe a -> Bool #(>) :: Maybe a -> Maybe a -> Bool #(>=) :: Maybe a -> Maybe a -> Bool #max :: Maybe a -> Maybe a -> Maybe a #min :: Maybe a -> Maybe a -> Maybe a # Integral a => Ord (Ratio a) Since: base-2.0.1 Instance detailsDefined in GHC.Real Methodscompare :: Ratio a -> Ratio a -> Ordering #(<) :: Ratio a -> Ratio a -> Bool #(<=) :: Ratio a -> Ratio a -> Bool #(>) :: Ratio a -> Ratio a -> Bool #(>=) :: Ratio a -> Ratio a -> Bool #max :: Ratio a -> Ratio a -> Ratio a #min :: Ratio a -> Ratio a -> Ratio a # Ord (Ptr a) Since: base-2.1 Instance detailsDefined in GHC.Ptr Methodscompare :: Ptr a -> Ptr a -> Ordering #(<) :: Ptr a -> Ptr a -> Bool #(<=) :: Ptr a -> Ptr a -> Bool #(>) :: Ptr a -> Ptr a -> Bool #(>=) :: Ptr a -> Ptr a -> Bool #max :: Ptr a -> Ptr a -> Ptr a #min :: Ptr a -> Ptr a -> Ptr a # Ord (FunPtr a) Instance detailsDefined in GHC.Ptr Methodscompare :: FunPtr a -> FunPtr a -> Ordering #(<) :: FunPtr a -> FunPtr a -> Bool #(<=) :: FunPtr a -> FunPtr a -> Bool #(>) :: FunPtr a -> FunPtr a -> Bool #(>=) :: FunPtr a -> FunPtr a -> Bool #max :: FunPtr a -> FunPtr a -> FunPtr a #min :: FunPtr a -> FunPtr a -> FunPtr a # Ord p => Ord (Par1 p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: Par1 p -> Par1 p -> Ordering #(<) :: Par1 p -> Par1 p -> Bool #(<=) :: Par1 p -> Par1 p -> Bool #(>) :: Par1 p -> Par1 p -> Bool #(>=) :: Par1 p -> Par1 p -> Bool #max :: Par1 p -> Par1 p -> Par1 p #min :: Par1 p -> Par1 p -> Par1 p # Ord a => Ord (Min a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodscompare :: Min a -> Min a -> Ordering #(<) :: Min a -> Min a -> Bool #(<=) :: Min a -> Min a -> Bool #(>) :: Min a -> Min a -> Bool #(>=) :: Min a -> Min a -> Bool #max :: Min a -> Min a -> Min a #min :: Min a -> Min a -> Min a # Ord a => Ord (Max a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodscompare :: Max a -> Max a -> Ordering #(<) :: Max a -> Max a -> Bool #(<=) :: Max a -> Max a -> Bool #(>) :: Max a -> Max a -> Bool #(>=) :: Max a -> Max a -> Bool #max :: Max a -> Max a -> Max a #min :: Max a -> Max a -> Max a # Ord a => Ord (First a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodscompare :: First a -> First a -> Ordering #(<) :: First a -> First a -> Bool #(<=) :: First a -> First a -> Bool #(>) :: First a -> First a -> Bool #(>=) :: First a -> First a -> Bool #max :: First a -> First a -> First a #min :: First a -> First a -> First a # Ord a => Ord (Last a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodscompare :: Last a -> Last a -> Ordering #(<) :: Last a -> Last a -> Bool #(<=) :: Last a -> Last a -> Bool #(>) :: Last a -> Last a -> Bool #(>=) :: Last a -> Last a -> Bool #max :: Last a -> Last a -> Last a #min :: Last a -> Last a -> Last a # Ord m => Ord (WrappedMonoid m) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods(<) :: WrappedMonoid m -> WrappedMonoid m -> Bool #(<=) :: WrappedMonoid m -> WrappedMonoid m -> Bool #(>) :: WrappedMonoid m -> WrappedMonoid m -> Bool #(>=) :: WrappedMonoid m -> WrappedMonoid m -> Bool #max :: WrappedMonoid m -> WrappedMonoid m -> WrappedMonoid m #min :: WrappedMonoid m -> WrappedMonoid m -> WrappedMonoid m # Ord a => Ord (Option a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodscompare :: Option a -> Option a -> Ordering #(<) :: Option a -> Option a -> Bool #(<=) :: Option a -> Option a -> Bool #(>) :: Option a -> Option a -> Bool #(>=) :: Option a -> Option a -> Bool #max :: Option a -> Option a -> Option a #min :: Option a -> Option a -> Option a # Ord a => Ord (ZipList a) Since: base-4.7.0.0 Instance detailsDefined in Control.Applicative Methodscompare :: ZipList a -> ZipList a -> Ordering #(<) :: ZipList a -> ZipList a -> Bool #(<=) :: ZipList a -> ZipList a -> Bool #(>) :: ZipList a -> ZipList a -> Bool #(>=) :: ZipList a -> ZipList a -> Bool #max :: ZipList a -> ZipList a -> ZipList a #min :: ZipList a -> ZipList a -> ZipList a # Ord a => Ord (Identity a) Since: base-4.8.0.0 Instance detailsDefined in Data.Functor.Identity Methodscompare :: Identity a -> Identity a -> Ordering #(<) :: Identity a -> Identity a -> Bool #(<=) :: Identity a -> Identity a -> Bool #(>) :: Identity a -> Identity a -> Bool #(>=) :: Identity a -> Identity a -> Bool #max :: Identity a -> Identity a -> Identity a #min :: Identity a -> Identity a -> Identity a # Since: base-2.1 Instance detailsDefined in GHC.ForeignPtr Methodscompare :: ForeignPtr a -> ForeignPtr a -> Ordering #(<) :: ForeignPtr a -> ForeignPtr a -> Bool #(<=) :: ForeignPtr a -> ForeignPtr a -> Bool #(>) :: ForeignPtr a -> ForeignPtr a -> Bool #(>=) :: ForeignPtr a -> ForeignPtr a -> Bool #max :: ForeignPtr a -> ForeignPtr a -> ForeignPtr a #min :: ForeignPtr a -> ForeignPtr a -> ForeignPtr a # Ord a => Ord (First a) Since: base-2.1 Instance detailsDefined in Data.Monoid Methodscompare :: First a -> First a -> Ordering #(<) :: First a -> First a -> Bool #(<=) :: First a -> First a -> Bool #(>) :: First a -> First a -> Bool #(>=) :: First a -> First a -> Bool #max :: First a -> First a -> First a #min :: First a -> First a -> First a # Ord a => Ord (Last a) Since: base-2.1 Instance detailsDefined in Data.Monoid Methodscompare :: Last a -> Last a -> Ordering #(<) :: Last a -> Last a -> Bool #(<=) :: Last a -> Last a -> Bool #(>) :: Last a -> Last a -> Bool #(>=) :: Last a -> Last a -> Bool #max :: Last a -> Last a -> Last a #min :: Last a -> Last a -> Last a # Ord a => Ord (Dual a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methodscompare :: Dual a -> Dual a -> Ordering #(<) :: Dual a -> Dual a -> Bool #(<=) :: Dual a -> Dual a -> Bool #(>) :: Dual a -> Dual a -> Bool #(>=) :: Dual a -> Dual a -> Bool #max :: Dual a -> Dual a -> Dual a #min :: Dual a -> Dual a -> Dual a # Ord a => Ord (Sum a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methodscompare :: Sum a -> Sum a -> Ordering #(<) :: Sum a -> Sum a -> Bool #(<=) :: Sum a -> Sum a -> Bool #(>) :: Sum a -> Sum a -> Bool #(>=) :: Sum a -> Sum a -> Bool #max :: Sum a -> Sum a -> Sum a #min :: Sum a -> Sum a -> Sum a # Ord a => Ord (Product a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methodscompare :: Product a -> Product a -> Ordering #(<) :: Product a -> Product a -> Bool #(<=) :: Product a -> Product a -> Bool #(>) :: Product a -> Product a -> Bool #(>=) :: Product a -> Product a -> Bool #max :: Product a -> Product a -> Product a #min :: Product a -> Product a -> Product a # Ord a => Ord (Down a) Since: base-4.6.0.0 Instance detailsDefined in Data.Ord Methodscompare :: Down a -> Down a -> Ordering #(<) :: Down a -> Down a -> Bool #(<=) :: Down a -> Down a -> Bool #(>) :: Down a -> Down a -> Bool #(>=) :: Down a -> Down a -> Bool #max :: Down a -> Down a -> Down a #min :: Down a -> Down a -> Down a # Ord a => Ord (NonEmpty a) Since: base-4.9.0.0 Instance detailsDefined in GHC.Base Methodscompare :: NonEmpty a -> NonEmpty a -> Ordering #(<) :: NonEmpty a -> NonEmpty a -> Bool #(<=) :: NonEmpty a -> NonEmpty a -> Bool #(>) :: NonEmpty a -> NonEmpty a -> Bool #(>=) :: NonEmpty a -> NonEmpty a -> Bool #max :: NonEmpty a -> NonEmpty a -> NonEmpty a #min :: NonEmpty a -> NonEmpty a -> NonEmpty a # (ByteSwap a, Ord a) => Ord (BE a) Source # Instance detailsDefined in Basement.Endianness Methodscompare :: BE a -> BE a -> Ordering #(<) :: BE a -> BE a -> Bool #(<=) :: BE a -> BE a -> Bool #(>) :: BE a -> BE a -> Bool #(>=) :: BE a -> BE a -> Bool #max :: BE a -> BE a -> BE a #min :: BE a -> BE a -> BE a # (ByteSwap a, Ord a) => Ord (LE a) Source # Instance detailsDefined in Basement.Endianness Methodscompare :: LE a -> LE a -> Ordering #(<) :: LE a -> LE a -> Bool #(<=) :: LE a -> LE a -> Bool #(>) :: LE a -> LE a -> Bool #(>=) :: LE a -> LE a -> Bool #max :: LE a -> LE a -> LE a #min :: LE a -> LE a -> LE a # Ord (FinalPtr a) Source # Instance detailsDefined in Basement.FinalPtr Methodscompare :: FinalPtr a -> FinalPtr a -> Ordering #(<) :: FinalPtr a -> FinalPtr a -> Bool #(<=) :: FinalPtr a -> FinalPtr a -> Bool #(>) :: FinalPtr a -> FinalPtr a -> Bool #(>=) :: FinalPtr a -> FinalPtr a -> Bool #max :: FinalPtr a -> FinalPtr a -> FinalPtr a #min :: FinalPtr a -> FinalPtr a -> FinalPtr a # Ord (Zn n) Source # Instance detailsDefined in Basement.Bounded Methodscompare :: Zn n -> Zn n -> Ordering #(<) :: Zn n -> Zn n -> Bool #(<=) :: Zn n -> Zn n -> Bool #(>) :: Zn n -> Zn n -> Bool #(>=) :: Zn n -> Zn n -> Bool #max :: Zn n -> Zn n -> Zn n #min :: Zn n -> Zn n -> Zn n # Ord (Zn64 n) Source # Instance detailsDefined in Basement.Bounded Methodscompare :: Zn64 n -> Zn64 n -> Ordering #(<) :: Zn64 n -> Zn64 n -> Bool #(<=) :: Zn64 n -> Zn64 n -> Bool #(>) :: Zn64 n -> Zn64 n -> Bool #(>=) :: Zn64 n -> Zn64 n -> Bool #max :: Zn64 n -> Zn64 n -> Zn64 n #min :: Zn64 n -> Zn64 n -> Zn64 n # Ord (CountOf ty) Source # Instance detailsDefined in Basement.Types.OffsetSize Methodscompare :: CountOf ty -> CountOf ty -> Ordering #(<) :: CountOf ty -> CountOf ty -> Bool #(<=) :: CountOf ty -> CountOf ty -> Bool #(>) :: CountOf ty -> CountOf ty -> Bool #(>=) :: CountOf ty -> CountOf ty -> Bool #max :: CountOf ty -> CountOf ty -> CountOf ty #min :: CountOf ty -> CountOf ty -> CountOf ty # Ord (Offset ty) Source # Instance detailsDefined in Basement.Types.OffsetSize Methodscompare :: Offset ty -> Offset ty -> Ordering #(<) :: Offset ty -> Offset ty -> Bool #(<=) :: Offset ty -> Offset ty -> Bool #(>) :: Offset ty -> Offset ty -> Bool #(>=) :: Offset ty -> Offset ty -> Bool #max :: Offset ty -> Offset ty -> Offset ty #min :: Offset ty -> Offset ty -> Offset ty # (PrimType ty, Ord ty) => Ord (Block ty) Source # Instance detailsDefined in Basement.Block.Base Methodscompare :: Block ty -> Block ty -> Ordering #(<) :: Block ty -> Block ty -> Bool #(<=) :: Block ty -> Block ty -> Bool #(>) :: Block ty -> Block ty -> Bool #(>=) :: Block ty -> Block ty -> Bool #max :: Block ty -> Block ty -> Block ty #min :: Block ty -> Block ty -> Block ty # Ord (Bits n) Source # Instance detailsDefined in Basement.Bits Methodscompare :: Bits n -> Bits n -> Ordering #(<) :: Bits n -> Bits n -> Bool #(<=) :: Bits n -> Bits n -> Bool #(>) :: Bits n -> Bits n -> Bool #(>=) :: Bits n -> Bits n -> Bool #max :: Bits n -> Bits n -> Bits n #min :: Bits n -> Bits n -> Bits n # (PrimType ty, Ord ty) => Ord (UArray ty) Source # Instance detailsDefined in Basement.UArray.Base Methodscompare :: UArray ty -> UArray ty -> Ordering #(<) :: UArray ty -> UArray ty -> Bool #(<=) :: UArray ty -> UArray ty -> Bool #(>) :: UArray ty -> UArray ty -> Bool #(>=) :: UArray ty -> UArray ty -> Bool #max :: UArray ty -> UArray ty -> UArray ty #min :: UArray ty -> UArray ty -> UArray ty # Ord a => Ord (Array a) Source # Instance detailsDefined in Basement.BoxedArray Methodscompare :: Array a -> Array a -> Ordering #(<) :: Array a -> Array a -> Bool #(<=) :: Array a -> Array a -> Bool #(>) :: Array a -> Array a -> Bool #(>=) :: Array a -> Array a -> Bool #max :: Array a -> Array a -> Array a #min :: Array a -> Array a -> Array a # (Ord a, Ord b) => Ord (Either a b) Since: base-2.1 Instance detailsDefined in Data.Either Methodscompare :: Either a b -> Either a b -> Ordering #(<) :: Either a b -> Either a b -> Bool #(<=) :: Either a b -> Either a b -> Bool #(>) :: Either a b -> Either a b -> Bool #(>=) :: Either a b -> Either a b -> Bool #max :: Either a b -> Either a b -> Either a b #min :: Either a b -> Either a b -> Either a b # Ord (V1 p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: V1 p -> V1 p -> Ordering #(<) :: V1 p -> V1 p -> Bool #(<=) :: V1 p -> V1 p -> Bool #(>) :: V1 p -> V1 p -> Bool #(>=) :: V1 p -> V1 p -> Bool #max :: V1 p -> V1 p -> V1 p #min :: V1 p -> V1 p -> V1 p # Ord (U1 p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: U1 p -> U1 p -> Ordering #(<) :: U1 p -> U1 p -> Bool #(<=) :: U1 p -> U1 p -> Bool #(>) :: U1 p -> U1 p -> Bool #(>=) :: U1 p -> U1 p -> Bool #max :: U1 p -> U1 p -> U1 p #min :: U1 p -> U1 p -> U1 p # Ord (TypeRep a) Since: base-4.4.0.0 Instance detailsDefined in Data.Typeable.Internal Methodscompare :: TypeRep a -> TypeRep a -> Ordering #(<) :: TypeRep a -> TypeRep a -> Bool #(<=) :: TypeRep a -> TypeRep a -> Bool #(>) :: TypeRep a -> TypeRep a -> Bool #(>=) :: TypeRep a -> TypeRep a -> Bool #max :: TypeRep a -> TypeRep a -> TypeRep a #min :: TypeRep a -> TypeRep a -> TypeRep a # (Ord a, Ord b) => Ord (a, b) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b) -> (a, b) -> Ordering #(<) :: (a, b) -> (a, b) -> Bool #(<=) :: (a, b) -> (a, b) -> Bool #(>) :: (a, b) -> (a, b) -> Bool #(>=) :: (a, b) -> (a, b) -> Bool #max :: (a, b) -> (a, b) -> (a, b) #min :: (a, b) -> (a, b) -> (a, b) # Ord a => Ord (Arg a b) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodscompare :: Arg a b -> Arg a b -> Ordering #(<) :: Arg a b -> Arg a b -> Bool #(<=) :: Arg a b -> Arg a b -> Bool #(>) :: Arg a b -> Arg a b -> Bool #(>=) :: Arg a b -> Arg a b -> Bool #max :: Arg a b -> Arg a b -> Arg a b #min :: Arg a b -> Arg a b -> Arg a b # Ord (Proxy s) Since: base-4.7.0.0 Instance detailsDefined in Data.Proxy Methodscompare :: Proxy s -> Proxy s -> Ordering #(<) :: Proxy s -> Proxy s -> Bool #(<=) :: Proxy s -> Proxy s -> Bool #(>) :: Proxy s -> Proxy s -> Bool #(>=) :: Proxy s -> Proxy s -> Bool #max :: Proxy s -> Proxy s -> Proxy s #min :: Proxy s -> Proxy s -> Proxy s # (Ix i, Ord e) => Ord (Array i e) Since: base-2.1 Instance detailsDefined in GHC.Arr Methodscompare :: Array i e -> Array i e -> Ordering #(<) :: Array i e -> Array i e -> Bool #(<=) :: Array i e -> Array i e -> Bool #(>) :: Array i e -> Array i e -> Bool #(>=) :: Array i e -> Array i e -> Bool #max :: Array i e -> Array i e -> Array i e #min :: Array i e -> Array i e -> Array i e # (Ord a, Ord b) => Ord (These a b) Source # Instance detailsDefined in Basement.These Methodscompare :: These a b -> These a b -> Ordering #(<) :: These a b -> These a b -> Bool #(<=) :: These a b -> These a b -> Bool #(>) :: These a b -> These a b -> Bool #(>=) :: These a b -> These a b -> Bool #max :: These a b -> These a b -> These a b #min :: These a b -> These a b -> These a b # Ord a => Ord (ListN n a) Source # Instance detailsDefined in Basement.Sized.List Methodscompare :: ListN n a -> ListN n a -> Ordering #(<) :: ListN n a -> ListN n a -> Bool #(<=) :: ListN n a -> ListN n a -> Bool #(>) :: ListN n a -> ListN n a -> Bool #(>=) :: ListN n a -> ListN n a -> Bool #max :: ListN n a -> ListN n a -> ListN n a #min :: ListN n a -> ListN n a -> ListN n a # (PrimType a, Ord a) => Ord (BlockN n a) Source # Instance detailsDefined in Basement.Sized.Block Methodscompare :: BlockN n a -> BlockN n a -> Ordering #(<) :: BlockN n a -> BlockN n a -> Bool #(<=) :: BlockN n a -> BlockN n a -> Bool #(>) :: BlockN n a -> BlockN n a -> Bool #(>=) :: BlockN n a -> BlockN n a -> Bool #max :: BlockN n a -> BlockN n a -> BlockN n a #min :: BlockN n a -> BlockN n a -> BlockN n a # Ord (f p) => Ord (Rec1 f p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: Rec1 f p -> Rec1 f p -> Ordering #(<) :: Rec1 f p -> Rec1 f p -> Bool #(<=) :: Rec1 f p -> Rec1 f p -> Bool #(>) :: Rec1 f p -> Rec1 f p -> Bool #(>=) :: Rec1 f p -> Rec1 f p -> Bool #max :: Rec1 f p -> Rec1 f p -> Rec1 f p #min :: Rec1 f p -> Rec1 f p -> Rec1 f p # Ord (URec (Ptr ()) p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: URec (Ptr ()) p -> URec (Ptr ()) p -> Ordering #(<) :: URec (Ptr ()) p -> URec (Ptr ()) p -> Bool #(<=) :: URec (Ptr ()) p -> URec (Ptr ()) p -> Bool #(>) :: URec (Ptr ()) p -> URec (Ptr ()) p -> Bool #(>=) :: URec (Ptr ()) p -> URec (Ptr ()) p -> Bool #max :: URec (Ptr ()) p -> URec (Ptr ()) p -> URec (Ptr ()) p #min :: URec (Ptr ()) p -> URec (Ptr ()) p -> URec (Ptr ()) p # Ord (URec Char p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: URec Char p -> URec Char p -> Ordering #(<) :: URec Char p -> URec Char p -> Bool #(<=) :: URec Char p -> URec Char p -> Bool #(>) :: URec Char p -> URec Char p -> Bool #(>=) :: URec Char p -> URec Char p -> Bool #max :: URec Char p -> URec Char p -> URec Char p #min :: URec Char p -> URec Char p -> URec Char p # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: URec Double p -> URec Double p -> Ordering #(<) :: URec Double p -> URec Double p -> Bool #(<=) :: URec Double p -> URec Double p -> Bool #(>) :: URec Double p -> URec Double p -> Bool #(>=) :: URec Double p -> URec Double p -> Bool #max :: URec Double p -> URec Double p -> URec Double p #min :: URec Double p -> URec Double p -> URec Double p # Ord (URec Float p) Instance detailsDefined in GHC.Generics Methodscompare :: URec Float p -> URec Float p -> Ordering #(<) :: URec Float p -> URec Float p -> Bool #(<=) :: URec Float p -> URec Float p -> Bool #(>) :: URec Float p -> URec Float p -> Bool #(>=) :: URec Float p -> URec Float p -> Bool #max :: URec Float p -> URec Float p -> URec Float p #min :: URec Float p -> URec Float p -> URec Float p # Ord (URec Int p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: URec Int p -> URec Int p -> Ordering #(<) :: URec Int p -> URec Int p -> Bool #(<=) :: URec Int p -> URec Int p -> Bool #(>) :: URec Int p -> URec Int p -> Bool #(>=) :: URec Int p -> URec Int p -> Bool #max :: URec Int p -> URec Int p -> URec Int p #min :: URec Int p -> URec Int p -> URec Int p # Ord (URec Word p) Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: URec Word p -> URec Word p -> Ordering #(<) :: URec Word p -> URec Word p -> Bool #(<=) :: URec Word p -> URec Word p -> Bool #(>) :: URec Word p -> URec Word p -> Bool #(>=) :: URec Word p -> URec Word p -> Bool #max :: URec Word p -> URec Word p -> URec Word p #min :: URec Word p -> URec Word p -> URec Word p # (Ord a, Ord b, Ord c) => Ord (a, b, c) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c) -> (a, b, c) -> Ordering #(<) :: (a, b, c) -> (a, b, c) -> Bool #(<=) :: (a, b, c) -> (a, b, c) -> Bool #(>) :: (a, b, c) -> (a, b, c) -> Bool #(>=) :: (a, b, c) -> (a, b, c) -> Bool #max :: (a, b, c) -> (a, b, c) -> (a, b, c) #min :: (a, b, c) -> (a, b, c) -> (a, b, c) # Ord a => Ord (Const a b) Since: base-4.9.0.0 Instance detailsDefined in Data.Functor.Const Methodscompare :: Const a b -> Const a b -> Ordering #(<) :: Const a b -> Const a b -> Bool #(<=) :: Const a b -> Const a b -> Bool #(>) :: Const a b -> Const a b -> Bool #(>=) :: Const a b -> Const a b -> Bool #max :: Const a b -> Const a b -> Const a b #min :: Const a b -> Const a b -> Const a b # Ord (f a) => Ord (Ap f a) Since: base-4.12.0.0 Instance detailsDefined in Data.Monoid Methodscompare :: Ap f a -> Ap f a -> Ordering #(<) :: Ap f a -> Ap f a -> Bool #(<=) :: Ap f a -> Ap f a -> Bool #(>) :: Ap f a -> Ap f a -> Bool #(>=) :: Ap f a -> Ap f a -> Bool #max :: Ap f a -> Ap f a -> Ap f a #min :: Ap f a -> Ap f a -> Ap f a # Ord (f a) => Ord (Alt f a) Since: base-4.8.0.0 Instance detailsDefined in Data.Semigroup.Internal Methodscompare :: Alt f a -> Alt f a -> Ordering #(<) :: Alt f a -> Alt f a -> Bool #(<=) :: Alt f a -> Alt f a -> Bool #(>) :: Alt f a -> Alt f a -> Bool #(>=) :: Alt f a -> Alt f a -> Bool #max :: Alt f a -> Alt f a -> Alt f a #min :: Alt f a -> Alt f a -> Alt f a # Ord (Coercion a b) Since: base-4.7.0.0 Instance detailsDefined in Data.Type.Coercion Methodscompare :: Coercion a b -> Coercion a b -> Ordering #(<) :: Coercion a b -> Coercion a b -> Bool #(<=) :: Coercion a b -> Coercion a b -> Bool #(>) :: Coercion a b -> Coercion a b -> Bool #(>=) :: Coercion a b -> Coercion a b -> Bool #max :: Coercion a b -> Coercion a b -> Coercion a b #min :: Coercion a b -> Coercion a b -> Coercion a b # Ord (a :~: b) Since: base-4.7.0.0 Instance detailsDefined in Data.Type.Equality Methodscompare :: (a :~: b) -> (a :~: b) -> Ordering #(<) :: (a :~: b) -> (a :~: b) -> Bool #(<=) :: (a :~: b) -> (a :~: b) -> Bool #(>) :: (a :~: b) -> (a :~: b) -> Bool #(>=) :: (a :~: b) -> (a :~: b) -> Bool #max :: (a :~: b) -> (a :~: b) -> a :~: b #min :: (a :~: b) -> (a :~: b) -> a :~: b # Ord c => Ord (K1 i c p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: K1 i c p -> K1 i c p -> Ordering #(<) :: K1 i c p -> K1 i c p -> Bool #(<=) :: K1 i c p -> K1 i c p -> Bool #(>) :: K1 i c p -> K1 i c p -> Bool #(>=) :: K1 i c p -> K1 i c p -> Bool #max :: K1 i c p -> K1 i c p -> K1 i c p #min :: K1 i c p -> K1 i c p -> K1 i c p # (Ord (f p), Ord (g p)) => Ord ((f :+: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: (f :+: g) p -> (f :+: g) p -> Ordering #(<) :: (f :+: g) p -> (f :+: g) p -> Bool #(<=) :: (f :+: g) p -> (f :+: g) p -> Bool #(>) :: (f :+: g) p -> (f :+: g) p -> Bool #(>=) :: (f :+: g) p -> (f :+: g) p -> Bool #max :: (f :+: g) p -> (f :+: g) p -> (f :+: g) p #min :: (f :+: g) p -> (f :+: g) p -> (f :+: g) p # (Ord (f p), Ord (g p)) => Ord ((f :*: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: (f :*: g) p -> (f :*: g) p -> Ordering #(<) :: (f :*: g) p -> (f :*: g) p -> Bool #(<=) :: (f :*: g) p -> (f :*: g) p -> Bool #(>) :: (f :*: g) p -> (f :*: g) p -> Bool #(>=) :: (f :*: g) p -> (f :*: g) p -> Bool #max :: (f :*: g) p -> (f :*: g) p -> (f :*: g) p #min :: (f :*: g) p -> (f :*: g) p -> (f :*: g) p # (Ord a, Ord b, Ord c, Ord d) => Ord (a, b, c, d) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d) -> (a, b, c, d) -> Ordering #(<) :: (a, b, c, d) -> (a, b, c, d) -> Bool #(<=) :: (a, b, c, d) -> (a, b, c, d) -> Bool #(>) :: (a, b, c, d) -> (a, b, c, d) -> Bool #(>=) :: (a, b, c, d) -> (a, b, c, d) -> Bool #max :: (a, b, c, d) -> (a, b, c, d) -> (a, b, c, d) #min :: (a, b, c, d) -> (a, b, c, d) -> (a, b, c, d) # Ord (a :~~: b) Since: base-4.10.0.0 Instance detailsDefined in Data.Type.Equality Methodscompare :: (a :~~: b) -> (a :~~: b) -> Ordering #(<) :: (a :~~: b) -> (a :~~: b) -> Bool #(<=) :: (a :~~: b) -> (a :~~: b) -> Bool #(>) :: (a :~~: b) -> (a :~~: b) -> Bool #(>=) :: (a :~~: b) -> (a :~~: b) -> Bool #max :: (a :~~: b) -> (a :~~: b) -> a :~~: b #min :: (a :~~: b) -> (a :~~: b) -> a :~~: b # Ord (f p) => Ord (M1 i c f p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: M1 i c f p -> M1 i c f p -> Ordering #(<) :: M1 i c f p -> M1 i c f p -> Bool #(<=) :: M1 i c f p -> M1 i c f p -> Bool #(>) :: M1 i c f p -> M1 i c f p -> Bool #(>=) :: M1 i c f p -> M1 i c f p -> Bool #max :: M1 i c f p -> M1 i c f p -> M1 i c f p #min :: M1 i c f p -> M1 i c f p -> M1 i c f p # Ord (f (g p)) => Ord ((f :.: g) p) Since: base-4.7.0.0 Instance detailsDefined in GHC.Generics Methodscompare :: (f :.: g) p -> (f :.: g) p -> Ordering #(<) :: (f :.: g) p -> (f :.: g) p -> Bool #(<=) :: (f :.: g) p -> (f :.: g) p -> Bool #(>) :: (f :.: g) p -> (f :.: g) p -> Bool #(>=) :: (f :.: g) p -> (f :.: g) p -> Bool #max :: (f :.: g) p -> (f :.: g) p -> (f :.: g) p #min :: (f :.: g) p -> (f :.: g) p -> (f :.: g) p # (Ord a, Ord b, Ord c, Ord d, Ord e) => Ord (a, b, c, d, e) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e) -> (a, b, c, d, e) -> Ordering #(<) :: (a, b, c, d, e) -> (a, b, c, d, e) -> Bool #(<=) :: (a, b, c, d, e) -> (a, b, c, d, e) -> Bool #(>) :: (a, b, c, d, e) -> (a, b, c, d, e) -> Bool #(>=) :: (a, b, c, d, e) -> (a, b, c, d, e) -> Bool #max :: (a, b, c, d, e) -> (a, b, c, d, e) -> (a, b, c, d, e) #min :: (a, b, c, d, e) -> (a, b, c, d, e) -> (a, b, c, d, e) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f) => Ord (a, b, c, d, e, f) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> Ordering #(<) :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> Bool #(<=) :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> Bool #(>) :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> Bool #(>=) :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> Bool #max :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> (a, b, c, d, e, f) #min :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> (a, b, c, d, e, f) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g) => Ord (a, b, c, d, e, f, g) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> Ordering #(<) :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> Bool #(<=) :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> Bool #(>) :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> Bool #(>=) :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> Bool #max :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) #min :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h) => Ord (a, b, c, d, e, f, g, h) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> Ordering #(<) :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> Bool #(<=) :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> Bool #(>) :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> Bool #(>=) :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> Bool #max :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) #min :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i) => Ord (a, b, c, d, e, f, g, h, i) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> Ordering #(<) :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> Bool #(<=) :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> Bool #(>) :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> Bool #(>=) :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> Bool #max :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) #min :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i, Ord j) => Ord (a, b, c, d, e, f, g, h, i, j) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> Ordering #(<) :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> Bool #(<=) :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> Bool #(>) :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> Bool #(>=) :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> Bool #max :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) #min :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i, Ord j, Ord k) => Ord (a, b, c, d, e, f, g, h, i, j, k) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> Ordering #(<) :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> Bool #(<=) :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> Bool #(>) :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> Bool #(>=) :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> Bool #max :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) #min :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i, Ord j, Ord k, Ord l) => Ord (a, b, c, d, e, f, g, h, i, j, k, l) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Ordering #(<) :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Bool #(<=) :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Bool #(>) :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Bool #(>=) :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Bool #max :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) #min :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i, Ord j, Ord k, Ord l, Ord m) => Ord (a, b, c, d, e, f, g, h, i, j, k, l, m) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Ordering #(<) :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Bool #(<=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Bool #(>) :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Bool #(>=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Bool #max :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) #min :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i, Ord j, Ord k, Ord l, Ord m, Ord n) => Ord (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Ordering #(<) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Bool #(<=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Bool #(>) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Bool #(>=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Bool #max :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) #min :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) # (Ord a, Ord b, Ord c, Ord d, Ord e, Ord f, Ord g, Ord h, Ord i, Ord j, Ord k, Ord l, Ord m, Ord n, Ord o) => Ord (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Instance detailsDefined in GHC.Classes Methodscompare :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Ordering #(<) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Bool #(<=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Bool #(>) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Bool #(>=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Bool #max :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) #min :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) #

class Eq a where #

The Eq class defines equality (==) and inequality (/=). All the basic datatypes exported by the Prelude are instances of Eq, and Eq may be derived for any datatype whose constituents are also instances of Eq.

The Haskell Report defines no laws for Eq. However, == is customarily expected to implement an equivalence relationship where two values comparing equal are indistinguishable by "public" functions, with a "public" function being one not allowing to see implementation details. For example, for a type representing non-normalised natural numbers modulo 100, a "public" function doesn't make the difference between 1 and 201. It is expected to have the following properties:

Reflexivity
x == x = True
Symmetry
x == y = y == x
Transitivity
if x == y && y == z = True, then x == z = True
Substitutivity
if x == y = True and f is a "public" function whose return type is an instance of Eq, then f x == f y = True
Negation
x /= y = not (x == y)

Minimal complete definition: either == or /=.

Minimal complete definition

Methods

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

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

#### Instances

Instances details
 Instance detailsDefined in GHC.Classes Methods(==) :: Bool -> Bool -> Bool #(/=) :: Bool -> Bool -> Bool # Instance detailsDefined in GHC.Classes Methods(==) :: Char -> Char -> Bool #(/=) :: Char -> Char -> Bool # Note that due to the presence of NaN, Double's Eq instance does not satisfy reflexivity.>>> 0/0 == (0/0 :: Double) False Also note that Double's Eq instance does not satisfy substitutivity:>>> 0 == (-0 :: Double) True >>> recip 0 == recip (-0 :: Double) False  Instance detailsDefined in GHC.Classes Methods(==) :: Double -> Double -> Bool #(/=) :: Double -> Double -> Bool # Note that due to the presence of NaN, Float's Eq instance does not satisfy reflexivity.>>> 0/0 == (0/0 :: Float) False Also note that Float's Eq instance does not satisfy substitutivity:>>> 0 == (-0 :: Float) True >>> recip 0 == recip (-0 :: Float) False  Instance detailsDefined in GHC.Classes Methods(==) :: Float -> Float -> Bool #(/=) :: Float -> Float -> Bool # Instance detailsDefined in GHC.Classes Methods(==) :: Int -> Int -> Bool #(/=) :: Int -> Int -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(==) :: Int8 -> Int8 -> Bool #(/=) :: Int8 -> Int8 -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(==) :: Int16 -> Int16 -> Bool #(/=) :: Int16 -> Int16 -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(==) :: Int32 -> Int32 -> Bool #(/=) :: Int32 -> Int32 -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(==) :: Int64 -> Int64 -> Bool #(/=) :: Int64 -> Int64 -> Bool # Instance detailsDefined in GHC.Integer.Type Methods(==) :: Integer -> Integer -> Bool #(/=) :: Integer -> Integer -> Bool # Since: base-4.8.0.0 Instance detailsDefined in GHC.Natural Methods(==) :: Natural -> Natural -> Bool #(/=) :: Natural -> Natural -> Bool # Instance detailsDefined in GHC.Classes Methods Instance detailsDefined in GHC.Classes Methods(==) :: Word -> Word -> Bool #(/=) :: Word -> Word -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(==) :: Word8 -> Word8 -> Bool #(/=) :: Word8 -> Word8 -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(==) :: Word16 -> Word16 -> Bool #(/=) :: Word16 -> Word16 -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(==) :: Word32 -> Word32 -> Bool #(/=) :: Word32 -> Word32 -> Bool # Since: base-2.1 Instance detailsDefined in GHC.Word Methods(==) :: Word64 -> Word64 -> Bool #(/=) :: Word64 -> Word64 -> Bool # Instance detailsDefined in Data.Typeable.Internal Methods Eq () Instance detailsDefined in GHC.Classes Methods(==) :: () -> () -> Bool #(/=) :: () -> () -> Bool # Instance detailsDefined in GHC.Classes Methods(==) :: TyCon -> TyCon -> Bool #(/=) :: TyCon -> TyCon -> Bool # Instance detailsDefined in GHC.Classes Methods(==) :: Module -> Module -> Bool #(/=) :: Module -> Module -> Bool # Instance detailsDefined in GHC.Classes Methods(==) :: TrName -> TrName -> Bool #(/=) :: TrName -> TrName -> Bool # Since: base-4.3.0.0 Instance detailsDefined in GHC.Exts Methods Equality of constructorsSince: base-4.0.0.0 Instance detailsDefined in Data.Data Methods(==) :: Constr -> Constr -> Bool #(/=) :: Constr -> Constr -> Bool # Since: base-4.0.0.0 Instance detailsDefined in Data.Data Methods(==) :: DataRep -> DataRep -> Bool #(/=) :: DataRep -> DataRep -> Bool # Since: base-4.0.0.0 Instance detailsDefined in Data.Data Methods Since: base-4.0.0.0 Instance detailsDefined in Data.Data Methods(==) :: Fixity -> Fixity -> Bool #(/=) :: Fixity -> Fixity -> Bool # Since: base-2.1 Instance detailsDefined in Data.Version Methods(==) :: Version -> Version -> Bool #(/=) :: Version -> Version -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CDev -> CDev -> Bool #(/=) :: CDev -> CDev -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CIno -> CIno -> Bool #(/=) :: CIno -> CIno -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CMode -> CMode -> Bool #(/=) :: CMode -> CMode -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: COff -> COff -> Bool #(/=) :: COff -> COff -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CPid -> CPid -> Bool #(/=) :: CPid -> CPid -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CSsize -> CSsize -> Bool #(/=) :: CSsize -> CSsize -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CGid -> CGid -> Bool #(/=) :: CGid -> CGid -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CNlink -> CNlink -> Bool #(/=) :: CNlink -> CNlink -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CUid -> CUid -> Bool #(/=) :: CUid -> CUid -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CCc -> CCc -> Bool #(/=) :: CCc -> CCc -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CSpeed -> CSpeed -> Bool #(/=) :: CSpeed -> CSpeed -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CTcflag -> CTcflag -> Bool #(/=) :: CTcflag -> CTcflag -> Bool # Instance detailsDefined in System.Posix.Types Methods(==) :: CRLim -> CRLim -> Bool #(/=) :: CRLim -> CRLim -> Bool # Instance detailsDefined in System.Posix.Types Methods Instance detailsDefined in System.Posix.Types Methods(==) :: CBlkCnt -> CBlkCnt -> Bool #(/=) :: CBlkCnt -> CBlkCnt -> Bool # 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 #(/=) :: CId ->