basement-0.0.10: Foundation scrap box of array & string

Basement.Compat.Base

Description

internal re-export of all the good base bits

Synopsis

Documentation

($) :: (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 ($!) :: (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"

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

Boolean "or"

(.) :: 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 :: 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:

>>> 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 :: HasCallStack => [Char] -> a #

error stops 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 :: 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 :: a -> b -> b #

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

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

class Show a where #

Conversion of values to readable Strings.

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

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

For example, given the declarations

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

the derived instance of Show is equivalent to

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

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

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

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

Minimal complete definition

Methods

Arguments

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

Convert a value to a readable String.

showsPrec should satisfy the law

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

Derived instances of Read and Show satisfy the following:

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

show :: a -> String #

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

showList :: [a] -> ShowS #

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

Instances
 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 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) Since: 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 # (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 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 # 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 runConst 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 #

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

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

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
 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 # Instance detailsDefined in GHC.Integer.Type Methods(==) :: BigNat -> BigNat -> Bool #(/=) :: BigNat -> BigNat -> 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(==) ::