quickcheck-instances-0.3.27: Common quickcheck instances

Test.QuickCheck.Instances.CustomPrelude

Description

Custom prelude.

We don't need much, and we don't care about precise types (Monad or Applicative constraints, e.g.) So this is simple approach.

Synopsis

# Documentation

(++) :: [a] -> [a] -> [a] infixr 5 Source #

Append two lists, i.e.,

[x1, ..., xm] ++ [y1, ..., yn] == [x1, ..., xm, y1, ..., yn]
[x1, ..., xm] ++ [y1, ...] == [x1, ..., xm, y1, ...]

If the first list is not finite, the result is the first list.

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

Extract the first component of a pair.

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

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

map :: (a -> b) -> [a] -> [b] Source #

$$\mathcal{O}(n)$$. map f xs is the list obtained by applying f to each element of xs, i.e.,

map f [x1, x2, ..., xn] == [f x1, f x2, ..., f xn]
map f [x1, x2, ...] == [f x1, f x2, ...]
>>> map (+1) [1, 2, 3]


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

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

general coercion from integral types

class Bounded a where Source #

The Bounded class is used to name the upper and lower limits of a type. Ord is not a superclass of Bounded since types that are not totally ordered may also have upper and lower bounds.

The Bounded class may be derived for any enumeration type; minBound is the first constructor listed in the data declaration and maxBound is the last. Bounded may also be derived for single-constructor datatypes whose constituent types are in Bounded.

Methods

minBound :: a Source #

maxBound :: a Source #

#### Instances

Instances details
 Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-4.10.0.0 Instance detailsDefined in GHC.Enum Methods Since: base-4.10.0.0 Instance detailsDefined in GHC.Enum Methods Bounded () Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: () Source #maxBound :: () Source # Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.Ptr Methods Instance detailsDefined in Foreign.Ptr Methods Instance detailsDefined in GHC.LanguageExtensions.Type Methods Instance detailsDefined in System.Time Methods Instance detailsDefined in System.Time Methods Instance detailsDefined in Data.Time.Calendar.Quarter.Compat Methods Bounded a => Bounded (Solo a) Instance detailsDefined in Data.Tuple.Solo Methods Bounded a => Bounded (Min a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded a => Bounded (Max a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded a => Bounded (First a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded a => Bounded (Last a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded m => Bounded (WrappedMonoid m) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methods Bounded a => Bounded (Identity a) Since: base-4.9.0.0 Instance detailsDefined in Data.Functor.Identity Methods Bounded a => Bounded (Dual a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Bounded a => Bounded (Sum a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Bounded a => Bounded (Product a) Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods Bounded a => Bounded (Down a) Since: base-4.14.0.0 Instance detailsDefined in Data.Ord Methods (Bounded a, Bounded b) => Bounded (a, b) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b) Source #maxBound :: (a, b) Source # Bounded (Proxy t) Since: base-4.7.0.0 Instance detailsDefined in Data.Proxy Methods (Bounded a, Bounded b) => Bounded (Pair a b) Instance detailsDefined in Data.Strict.Tuple MethodsminBound :: Pair a b Source #maxBound :: Pair a b Source # (Bounded a, Bounded b, Bounded c) => Bounded (a, b, c) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c) Source #maxBound :: (a, b, c) Source # Bounded a => Bounded (Const a b) Since: base-4.9.0.0 Instance detailsDefined in Data.Functor.Const MethodsminBound :: Const a b Source #maxBound :: Const a b Source # (Applicative f, Bounded a) => Bounded (Ap f a) Since: base-4.12.0.0 Instance detailsDefined in Data.Monoid MethodsminBound :: Ap f a Source #maxBound :: Ap f a Source # Bounded b => Bounded (Tagged s b) Instance detailsDefined in Data.Tagged Methods (Bounded a, Bounded b, Bounded c, Bounded d) => Bounded (a, b, c, d) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d) Source #maxBound :: (a, b, c, d) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e) => Bounded (a, b, c, d, e) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e) Source #maxBound :: (a, b, c, d, e) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f) => Bounded (a, b, c, d, e, f) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f) Source #maxBound :: (a, b, c, d, e, f) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g) => Bounded (a, b, c, d, e, f, g) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g) Source #maxBound :: (a, b, c, d, e, f, g) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h) => Bounded (a, b, c, d, e, f, g, h) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h) Source #maxBound :: (a, b, c, d, e, f, g, h) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i) => Bounded (a, b, c, d, e, f, g, h, i) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i) Source #maxBound :: (a, b, c, d, e, f, g, h, i) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j) => Bounded (a, b, c, d, e, f, g, h, i, j) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j) Source #maxBound :: (a, b, c, d, e, f, g, h, i, j) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k) => Bounded (a, b, c, d, e, f, g, h, i, j, k) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k) Source #maxBound :: (a, b, c, d, e, f, g, h, i, j, k) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l) Source #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l, Bounded m) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l, m) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m) Source #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l, Bounded m, Bounded n) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) Source # (Bounded a, Bounded b, Bounded c, Bounded d, Bounded e, Bounded f, Bounded g, Bounded h, Bounded i, Bounded j, Bounded k, Bounded l, Bounded m, Bounded n, Bounded o) => Bounded (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsminBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source #maxBound :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) Source #

class Enum a where Source #

Class Enum defines operations on sequentially ordered types.

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

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

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

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

Minimal complete definition

Methods

succ :: a -> a Source #

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

pred :: a -> a Source #

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

toEnum :: Int -> a Source #

Convert from an Int.

fromEnum :: a -> Int Source #

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

enumFrom :: a -> [a] Source #

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

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

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

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

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

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

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

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

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

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

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

#### Instances

Instances details
 Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsenumFrom :: Bool -> [Bool] Source #enumFromThen :: Bool -> Bool -> [Bool] Source #enumFromTo :: Bool -> Bool -> [Bool] Source #enumFromThenTo :: Bool -> Bool -> Bool -> [Bool] Source # Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsenumFrom :: Char -> [Char] Source #enumFromThen :: Char -> Char -> [Char] Source #enumFromTo :: Char -> Char -> [Char] Source #enumFromThenTo :: Char -> Char -> Char -> [Char] Source # Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsenumFrom :: Int -> [Int] Source #enumFromThen :: Int -> Int -> [Int] Source #enumFromTo :: Int -> Int -> [Int] Source #enumFromThenTo :: Int -> Int -> Int -> [Int] Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsenumFrom :: Int8 -> [Int8] Source #enumFromThen :: Int8 -> Int8 -> [Int8] Source #enumFromTo :: Int8 -> Int8 -> [Int8] Source #enumFromThenTo :: Int8 -> Int8 -> Int8 -> [Int8] Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsenumFrom :: Int16 -> [Int16] Source #enumFromThen :: Int16 -> Int16 -> [Int16] Source #enumFromTo :: Int16 -> Int16 -> [Int16] Source #enumFromThenTo :: Int16 -> Int16 -> Int16 -> [Int16] Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsenumFrom :: Int32 -> [Int32] Source #enumFromThen :: Int32 -> Int32 -> [Int32] Source #enumFromTo :: Int32 -> Int32 -> [Int32] Source #enumFromThenTo :: Int32 -> Int32 -> Int32 -> [Int32] Source # Since: base-2.1 Instance detailsDefined in GHC.Int MethodsenumFrom :: Int64 -> [Int64] Source #enumFromThen :: Int64 -> Int64 -> [Int64] Source #enumFromTo :: Int64 -> Int64 -> [Int64] Source #enumFromThenTo :: Int64 -> Int64 -> Int64 -> [Int64] Source # Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-4.8.0.0 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum Methods Since: base-2.1 Instance detailsDefined in GHC.Enum MethodsenumFrom :: Word -> [Word] Source #enumFromThen :: Word -> Word -> [Word] Source #enumFromTo :: Word -> Word -> [Word] Source #enumFromThenTo :: Word -> Word -> Word -> [Word] Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsenumFrom :: Word8 -> [Word8] Source #enumFromThen :: Word8 -> Word8 -> [Word8] Source #enumFromTo :: Word8 -> Word8 -> [Word8] Source #enumFromThenTo :: Word8 -> Word8 -> Word8 -> [Word8] Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsenumFrom :: Word16 -> [Word16] Source #enumFromTo :: Word16 -> Word16 -> [Word16] Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsenumFrom :: Word32 -> [Word32] Source #enumFromTo :: Word32 -> Word32 -> [Word32] Source # Since: base-2.1 Instance detailsDefined in GHC.Word MethodsenumFrom :: Word64 -> [Word64] Source #enumFromTo :: Word64 -> Word64 -> [Word64] Source # Since: base-4.10.0.0 Instance detailsDefined in GHC.Enum Methods Since: base-4.10.0.0 Instance detailsDefined in GHC.Enum Methods Enum () Since: base-2.1 Instance detailsDefined in GHC.Enum Methodssucc :: () -> () Source #pred :: () -> () Source #toEnum :: Int -> () Source #fromEnum :: () -> Int Source #enumFrom :: () -> [()] Source #enumFromThen :: () -> () -> [()] Source #enumFromTo :: () -> () -> [()] Source #enumFromThenTo :: () -> () -> () -> [()] Source # Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CChar -> [CChar] Source #enumFromThen :: CChar -> CChar -> [CChar] Source #enumFromTo :: CChar -> CChar -> [CChar] Source #enumFromThenTo :: CChar -> CChar -> CChar -> [CChar] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CSChar -> [CSChar] Source #enumFromTo :: CSChar -> CSChar -> [CSChar] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CUChar -> [CUChar] Source #enumFromTo :: CUChar -> CUChar -> [CUChar] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CShort -> [CShort] Source #enumFromTo :: CShort -> CShort -> [CShort] Source # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CInt -> [CInt] Source #enumFromThen :: CInt -> CInt -> [CInt] Source #enumFromTo :: CInt -> CInt -> [CInt] Source #enumFromThenTo :: CInt -> CInt -> CInt -> [CInt] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CUInt -> [CUInt] Source #enumFromThen :: CUInt -> CUInt -> [CUInt] Source #enumFromTo :: CUInt -> CUInt -> [CUInt] Source #enumFromThenTo :: CUInt -> CUInt -> CUInt -> [CUInt] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CLong -> [CLong] Source #enumFromThen :: CLong -> CLong -> [CLong] Source #enumFromTo :: CLong -> CLong -> [CLong] Source #enumFromThenTo :: CLong -> CLong -> CLong -> [CLong] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CULong -> [CULong] Source #enumFromTo :: CULong -> CULong -> [CULong] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CLLong -> [CLLong] Source #enumFromTo :: CLLong -> CLLong -> [CLLong] Source # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CBool -> [CBool] Source #enumFromThen :: CBool -> CBool -> [CBool] Source #enumFromTo :: CBool -> CBool -> [CBool] Source #enumFromThenTo :: CBool -> CBool -> CBool -> [CBool] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CFloat -> [CFloat] Source #enumFromTo :: CFloat -> CFloat -> [CFloat] Source # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CSize -> [CSize] Source #enumFromThen :: CSize -> CSize -> [CSize] Source #enumFromTo :: CSize -> CSize -> [CSize] Source #enumFromThenTo :: CSize -> CSize -> CSize -> [CSize] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CWchar -> [CWchar] Source #enumFromTo :: CWchar -> CWchar -> [CWchar] Source # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CClock -> [CClock] Source #enumFromTo :: CClock -> CClock -> [CClock] Source # Instance detailsDefined in Foreign.C.Types MethodsenumFrom :: CTime -> [CTime] Source #enumFromThen :: CTime -> CTime -> [CTime] Source #enumFromTo :: CTime -> CTime -> [CTime] Source #enumFromThenTo :: CTime -> CTime -> CTime -> [CTime] Source # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.Ptr Methods Instance detailsDefined in Foreign.Ptr MethodsenumFrom :: IntPtr -> [IntPtr] Source #enumFromTo :: IntPtr -> IntPtr -> [IntPtr] Source # Instance detailsDefined in GHC.LanguageExtensions.Type Methods Instance detailsDefined in System.Time MethodsenumFrom :: Month -> [Month] Source #enumFromThen :: Month -> Month -> [Month] Source #enumFromTo :: Month -> Month -> [Month] Source #enumFromThenTo :: Month -> Month -> Month -> [Month] Source # Instance detailsDefined in System.Time MethodsenumFrom :: Day -> [Day] Source #enumFromThen :: Day -> Day -> [Day] Source #enumFromTo :: Day -> Day -> [Day] Source #enumFromThenTo :: Day -> Day -> Day -> [Day] Source # Instance detailsDefined in Data.Time.Clock.Internal.NominalDiffTime Methods Instance detailsDefined in Data.Time.Clock.Internal.DiffTime Methods "Circular", so for example [Tuesday ..] gives an endless sequence. Also: fromEnum gives [1 .. 7] for [Monday .. Sunday], and toEnum performs mod 7 to give a cycle of days. Instance detailsDefined in Data.Time.Calendar.Week Methods Instance detailsDefined in Data.Time.Calendar.Days MethodsenumFrom :: Day -> [Day] Source #enumFromThen :: Day -> Day -> [Day] Source #enumFromTo :: Day -> Day -> [Day] Source #enumFromThenTo :: Day -> Day -> Day -> [Day] Source # maps Q1..Q4 to 1..4 Instance detailsDefined in Data.Time.Calendar.Quarter.Compat Methods Instance detailsDefined in Data.Time.Calendar.Quarter.Compat Methods Instance detailsDefined in Data.Time.Calendar.Month.Compat MethodsenumFrom :: Month -> [Month] Source #enumFromThen :: Month -> Month -> [Month] Source #enumFromTo :: Month -> Month -> [Month] Source #enumFromThenTo :: Month -> Month -> Month -> [Month] Source # Integral a => Enum (Ratio a) Since: base-2.0.1 Instance detailsDefined in GHC.Real Methodssucc :: Ratio a -> Ratio a Source #pred :: Ratio a -> Ratio a Source #fromEnum :: Ratio a -> Int Source #enumFrom :: Ratio a -> [Ratio a] Source #enumFromThen :: Ratio a -> Ratio a -> [Ratio a] Source #enumFromTo :: Ratio a -> Ratio a -> [Ratio a] Source #enumFromThenTo :: Ratio a -> Ratio a -> Ratio a -> [Ratio a] Source # Enum a => Enum (Solo a) Instance detailsDefined in Data.Tuple.Solo Methodssucc :: Solo a -> Solo a Source #pred :: Solo a -> Solo a Source #toEnum :: Int -> Solo a Source #fromEnum :: Solo a -> Int Source #enumFrom :: Solo a -> [Solo a] Source #enumFromThen :: Solo a -> Solo a -> [Solo a] Source #enumFromTo :: Solo a -> Solo a -> [Solo a] Source #enumFromThenTo :: Solo a -> Solo a -> Solo a -> [Solo a] Source # Enum a => Enum (Blind a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: Blind a -> Blind a Source #pred :: Blind a -> Blind a Source #fromEnum :: Blind a -> Int Source #enumFrom :: Blind a -> [Blind a] Source #enumFromThen :: Blind a -> Blind a -> [Blind a] Source #enumFromTo :: Blind a -> Blind a -> [Blind a] Source #enumFromThenTo :: Blind a -> Blind a -> Blind a -> [Blind a] Source # Enum a => Enum (Fixed a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: Fixed a -> Fixed a Source #pred :: Fixed a -> Fixed a Source #fromEnum :: Fixed a -> Int Source #enumFrom :: Fixed a -> [Fixed a] Source #enumFromThen :: Fixed a -> Fixed a -> [Fixed a] Source #enumFromTo :: Fixed a -> Fixed a -> [Fixed a] Source #enumFromThenTo :: Fixed a -> Fixed a -> Fixed a -> [Fixed a] Source # Enum a => Enum (Positive a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: Positive a -> Positive a Source #pred :: Positive a -> Positive a Source #enumFrom :: Positive a -> [Positive a] Source #enumFromThen :: Positive a -> Positive a -> [Positive a] Source #enumFromTo :: Positive a -> Positive a -> [Positive a] Source #enumFromThenTo :: Positive a -> Positive a -> Positive a -> [Positive a] Source # Enum a => Enum (Negative a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: Negative a -> Negative a Source #pred :: Negative a -> Negative a Source #enumFrom :: Negative a -> [Negative a] Source #enumFromThen :: Negative a -> Negative a -> [Negative a] Source #enumFromTo :: Negative a -> Negative a -> [Negative a] Source #enumFromThenTo :: Negative a -> Negative a -> Negative a -> [Negative a] Source # Enum a => Enum (NonZero a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: NonZero a -> NonZero a Source #pred :: NonZero a -> NonZero a Source #enumFrom :: NonZero a -> [NonZero a] Source #enumFromThen :: NonZero a -> NonZero a -> [NonZero a] Source #enumFromTo :: NonZero a -> NonZero a -> [NonZero a] Source #enumFromThenTo :: NonZero a -> NonZero a -> NonZero a -> [NonZero a] Source # Enum a => Enum (NonNegative a) Instance detailsDefined in Test.QuickCheck.Modifiers MethodsenumFrom :: NonNegative a -> [NonNegative a] Source #enumFromThen :: NonNegative a -> NonNegative a -> [NonNegative a] Source #enumFromTo :: NonNegative a -> NonNegative a -> [NonNegative a] Source #enumFromThenTo :: NonNegative a -> NonNegative a -> NonNegative a -> [NonNegative a] Source # Enum a => Enum (NonPositive a) Instance detailsDefined in Test.QuickCheck.Modifiers MethodsenumFrom :: NonPositive a -> [NonPositive a] Source #enumFromThen :: NonPositive a -> NonPositive a -> [NonPositive a] Source #enumFromTo :: NonPositive a -> NonPositive a -> [NonPositive a] Source #enumFromThenTo :: NonPositive a -> NonPositive a -> NonPositive a -> [NonPositive a] Source # Enum a => Enum (Large a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: Large a -> Large a Source #pred :: Large a -> Large a Source #fromEnum :: Large a -> Int Source #enumFrom :: Large a -> [Large a] Source #enumFromThen :: Large a -> Large a -> [Large a] Source #enumFromTo :: Large a -> Large a -> [Large a] Source #enumFromThenTo :: Large a -> Large a -> Large a -> [Large a] Source # Enum a => Enum (Small a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: Small a -> Small a Source #pred :: Small a -> Small a Source #fromEnum :: Small a -> Int Source #enumFrom :: Small a -> [Small a] Source #enumFromThen :: Small a -> Small a -> [Small a] Source #enumFromTo :: Small a -> Small a -> [Small a] Source #enumFromThenTo :: Small a -> Small a -> Small a -> [Small a] Source # Enum a => Enum (Shrink2 a) Instance detailsDefined in Test.QuickCheck.Modifiers Methodssucc :: Shrink2 a -> Shrink2 a Source #pred :: Shrink2 a -> Shrink2 a Source #enumFrom :: Shrink2 a -> [Shrink2 a] Source #enumFromThen :: Shrink2 a -> Shrink2 a -> [Shrink2 a] Source #enumFromTo :: Shrink2 a -> Shrink2 a -> [Shrink2 a] Source #enumFromThenTo :: Shrink2 a -> Shrink2 a -> Shrink2 a -> [Shrink2 a] Source # Enum a => Enum (Min a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodssucc :: Min a -> Min a Source #pred :: Min a -> Min a Source #toEnum :: Int -> Min a Source #fromEnum :: Min a -> Int Source #enumFrom :: Min a -> [Min a] Source #enumFromThen :: Min a -> Min a -> [Min a] Source #enumFromTo :: Min a -> Min a -> [Min a] Source #enumFromThenTo :: Min a -> Min a -> Min a -> [Min a] Source # Enum a => Enum (Max a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodssucc :: Max a -> Max a Source #pred :: Max a -> Max a Source #toEnum :: Int -> Max a Source #fromEnum :: Max a -> Int Source #enumFrom :: Max a -> [Max a] Source #enumFromThen :: Max a -> Max a -> [Max a] Source #enumFromTo :: Max a -> Max a -> [Max a] Source #enumFromThenTo :: Max a -> Max a -> Max a -> [Max a] Source # Enum a => Enum (First a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodssucc :: First a -> First a Source #pred :: First a -> First a Source #fromEnum :: First a -> Int Source #enumFrom :: First a -> [First a] Source #enumFromThen :: First a -> First a -> [First a] Source #enumFromTo :: First a -> First a -> [First a] Source #enumFromThenTo :: First a -> First a -> First a -> [First a] Source # Enum a => Enum (Last a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup Methodssucc :: Last a -> Last a Source #pred :: Last a -> Last a Source #toEnum :: Int -> Last a Source #fromEnum :: Last a -> Int Source #enumFrom :: Last a -> [Last a] Source #enumFromThen :: Last a -> Last a -> [Last a] Source #enumFromTo :: Last a -> Last a -> [Last a] Source #enumFromThenTo :: Last a -> Last a -> Last a -> [Last a] Source # Enum a => Enum (WrappedMonoid a) Since: base-4.9.0.0 Instance detailsDefined in Data.Semigroup MethodsenumFromTo :: WrappedMonoid a -> WrappedMonoid a -> [WrappedMonoid a] Source # Enum a => Enum (Identity a) Since: base-4.9.0.0 Instance detailsDefined in Data.Functor.Identity Methodssucc :: Identity a -> Identity a Source #pred :: Identity a -> Identity a Source #enumFrom :: Identity a -> [Identity a] Source #enumFromThen :: Identity a -> Identity a -> [Identity a] Source #enumFromTo :: Identity a -> Identity a -> [Identity a] Source #enumFromThenTo :: Identity a -> Identity a -> Identity a -> [Identity a] Source # Enum a => Enum (Down a) Since: base-4.14.0.0 Instance detailsDefined in Data.Ord Methodssucc :: Down a -> Down a Source #pred :: Down a -> Down a Source #toEnum :: Int -> Down a Source #fromEnum :: Down a -> Int Source #enumFrom :: Down a -> [Down a] Source #enumFromThen :: Down a -> Down a -> [Down a] Source #enumFromTo :: Down a -> Down a -> [Down a] Source #enumFromThenTo :: Down a -> Down a -> Down a -> [Down a] Source # Enum (Fixed a) Since: base-2.1 Instance detailsDefined in Data.Fixed Methodssucc :: Fixed a -> Fixed a Source #pred :: Fixed a -> Fixed a Source #fromEnum :: Fixed a -> Int Source #enumFrom :: Fixed a -> [Fixed a] Source #enumFromThen :: Fixed a -> Fixed a -> [Fixed a] Source #enumFromTo :: Fixed a -> Fixed a -> [Fixed a] Source #enumFromThenTo :: Fixed a -> Fixed a -> Fixed a -> [Fixed a] Source # Enum (Proxy s) Since: base-4.7.0.0 Instance detailsDefined in Data.Proxy Methodssucc :: Proxy s -> Proxy s Source #pred :: Proxy s -> Proxy s Source #fromEnum :: Proxy s -> Int Source #enumFrom :: Proxy s -> [Proxy s] Source #enumFromThen :: Proxy s -> Proxy s -> [Proxy s] Source #enumFromTo :: Proxy s -> Proxy s -> [Proxy s] Source #enumFromThenTo :: Proxy s -> Proxy s -> Proxy s -> [Proxy s] Source # Enum a => Enum (Const a b) Since: base-4.9.0.0 Instance detailsDefined in Data.Functor.Const Methodssucc :: Const a b -> Const a b Source #pred :: Const a b -> Const a b Source #toEnum :: Int -> Const a b Source #fromEnum :: Const a b -> Int Source #enumFrom :: Const a b -> [Const a b] Source #enumFromThen :: Const a b -> Const a b -> [Const a b] Source #enumFromTo :: Const a b -> Const a b -> [Const a b] Source #enumFromThenTo :: Const a b -> Const a b -> Const a b -> [Const a b] Source # Enum (f a) => Enum (Ap f a) Since: base-4.12.0.0 Instance detailsDefined in Data.Monoid Methodssucc :: Ap f a -> Ap f a Source #pred :: Ap f a -> Ap f a Source #toEnum :: Int -> Ap f a Source #fromEnum :: Ap f a -> Int Source #enumFrom :: Ap f a -> [Ap f a] Source #enumFromThen :: Ap f a -> Ap f a -> [Ap f a] Source #enumFromTo :: Ap f a -> Ap f a -> [Ap f a] Source #enumFromThenTo :: Ap f a -> Ap f a -> Ap f a -> [Ap f a] Source # Enum (f a) => Enum (Alt f a) Since: base-4.8.0.0 Instance detailsDefined in Data.Semigroup.Internal Methodssucc :: Alt f a -> Alt f a Source #pred :: Alt f a -> Alt f a Source #toEnum :: Int -> Alt f a Source #fromEnum :: Alt f a -> Int Source #enumFrom :: Alt f a -> [Alt f a] Source #enumFromThen :: Alt f a -> Alt f a -> [Alt f a] Source #enumFromTo :: Alt f a -> Alt f a -> [Alt f a] Source #enumFromThenTo :: Alt f a -> Alt f a -> Alt f a -> [Alt f a] Source # Enum a => Enum (Tagged s a) Instance detailsDefined in Data.Tagged Methodssucc :: Tagged s a -> Tagged s a Source #pred :: Tagged s a -> Tagged s a Source #toEnum :: Int -> Tagged s a Source #fromEnum :: Tagged s a -> Int Source #enumFrom :: Tagged s a -> [Tagged s a] Source #enumFromThen :: Tagged s a -> Tagged s a -> [Tagged s a] Source #enumFromTo :: Tagged s a -> Tagged s a -> [Tagged s a] Source #enumFromThenTo :: Tagged s a -> Tagged s a -> Tagged s a -> [Tagged s a] Source #

class Eq a where Source #

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 Source #

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

#### Instances

Instances details
 Instance detailsDefined in GHC.Classes Methods(==) :: Bool -> Bool -> Bool Source #(/=) :: Bool -> Bool -> Bool Source # Instance detailsDefined in GHC.Classes Methods(==) :: Char -> Char -> Bool Source #(/=) :: Char -> Char -> Bool Source # 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 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 Instance detailsDefined in GHC.Classes Methods(==) :: Int -> Int -> Bool Source #(/=) :: Int -> Int -> Bool Source # Since: base-2.1 Instance detailsDefined in GHC.Int Methods(==) :: Int8 -> Int8 -> Bool Source #(/=) :: Int8 -> Int8 -> Bool Source # Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Since: base-2.1 Instance detailsDefined in GHC.Int Methods Instance detailsDefined in GHC.Integer.Type Methods Since: base-4.8.0.0 Instance detailsDefined in GHC.Natural Methods Instance detailsDefined in GHC.Classes Methods Instance detailsDefined in GHC.Classes Methods(==) :: Word -> Word -> Bool Source #(/=) :: Word -> Word -> Bool Source # Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Since: base-2.1 Instance detailsDefined in GHC.Word Methods Instance detailsDefined in Data.Typeable.Internal Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Exp -> Exp -> Bool Source #(/=) :: Exp -> Exp -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Pat -> Pat -> Bool Source #(/=) :: Pat -> Pat -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Type -> Type -> Bool Source #(/=) :: Type -> Type -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Dec -> Dec -> Bool Source #(/=) :: Dec -> Dec -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Name -> Name -> Bool Source #(/=) :: Name -> Name -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Eq () Instance detailsDefined in GHC.Classes Methods(==) :: () -> () -> Bool Source #(/=) :: () -> () -> Bool Source # Instance detailsDefined in GHC.Classes Methods Instance detailsDefined in GHC.Classes Methods Instance detailsDefined in GHC.Classes Methods Since: base-2.1 Instance detailsDefined in Data.Version Methods Instance detailsDefined in System.Random.Internal Methods Instance detailsDefined in Test.QuickCheck.Modifiers Methods Instance detailsDefined in Test.QuickCheck.Modifiers Methods Instance detailsDefined in Test.QuickCheck.Modifiers Methods Instance detailsDefined in Test.QuickCheck.Poly Methods(==) :: A -> A -> Bool Source #(/=) :: A -> A -> Bool Source # Instance detailsDefined in Test.QuickCheck.Poly Methods(==) :: B -> B -> Bool Source #(/=) :: B -> B -> Bool Source # Instance detailsDefined in Test.QuickCheck.Poly Methods(==) :: C -> C -> Bool Source #(/=) :: C -> C -> Bool Source # Instance detailsDefined in Test.QuickCheck.Poly Methods(==) :: OrdA -> OrdA -> Bool Source #(/=) :: OrdA -> OrdA -> Bool Source # Instance detailsDefined in Test.QuickCheck.Poly Methods(==) :: OrdB -> OrdB -> Bool Source #(/=) :: OrdB -> OrdB -> Bool Source # Instance detailsDefined in Test.QuickCheck.Poly Methods(==) :: OrdC -> OrdC -> Bool Source #(/=) :: OrdC -> OrdC -> Bool Source # Since: base-4.8.0.0 Instance detailsDefined in Data.Void Methods(==) :: Void -> Void -> Bool Source #(/=) :: Void -> Void -> Bool Source # Since: base-4.3.0.0 Instance detailsDefined in GHC.Exts Methods Instance detailsDefined in Data.Unique Methods Since: base-4.2.0.0 Instance detailsDefined in GHC.Conc.Sync Methods Since: base-4.3.0.0 Instance detailsDefined in GHC.Conc.Sync Methods Since: base-4.3.0.0 Instance detailsDefined in GHC.Conc.Sync Methods Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.2.0.0 Instance detailsDefined in GHC.IO.Exception Methods Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-4.3.0.0 Instance detailsDefined in GHC.IO Methods Since: base-4.1.0.0 Instance detailsDefined in GHC.IO.Exception Methods Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods(==) :: All -> All -> Bool Source #(/=) :: All -> All -> Bool Source # Since: base-2.1 Instance detailsDefined in Data.Semigroup.Internal Methods(==) :: Any -> Any -> Bool Source #(/=) :: Any -> Any -> Bool Source # Since: base-4.6.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.6.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Generics Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods(==) :: CInt -> CInt -> Bool Source #(/=) :: CInt -> CInt -> Bool Source # Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.C.Types Methods Instance detailsDefined in Foreign.Ptr Methods Instance detailsDefined in Foreign.Ptr Methods Since: base-4.4.0.0 Instance detailsDefined in GHC.Fingerprint.Type Methods Since: base-4.9.0.0 Instance detailsDefined in GHC.Stack.Types Methods Instance detailsDefined in Data.ByteString.Short.Internal Methods Instance detailsDefined in Data.ByteString.Lazy.Internal Methods Instance detailsDefined in Data.ByteString.Internal Methods Instance detailsDefined in Data.IntSet.Internal Methods Instance detailsDefined in GHC.LanguageExtensions.Type Methods Instance detailsDefined in GHC.ForeignSrcLang.Type Methods Instance detailsDefined in GHC.Integer.Type Methods Instance detailsDefined in System.Time Methods Instance detailsDefined in System.Time Methods(==) :: Day -> Day -> Bool Source #(/=) :: Day -> Day -> Bool Source # Instance detailsDefined in System.Time Methods Instance detailsDefined in System.Time Methods Instance detailsDefined in System.Time Methods Instance detailsDefined in Text.PrettyPrint.HughesPJ Methods(==) :: Doc -> Doc -> Bool Source #(/=) :: Doc -> Doc -> Bool Source # Instance detailsDefined in Text.PrettyPrint.Annotated.HughesPJ Methods Instance detailsDefined in Text.PrettyPrint.Annotated.HughesPJ Methods Instance detailsDefined in Text.PrettyPrint.Annotated.HughesPJ Methods(==) :: Mode -> Mode -> Bool Source #(/=) :: Mode -> Mode -> Bool Source # Since: primitive-0.6.3.0 Instance detailsDefined in Data.Primitive.ByteArray Methods Scientific numbers can be safely compared for equality. No magnitude 10^e is calculated so there's no risk of a blowup in space or time when comparing scientific numbers coming from untrusted sources. Instance detailsDefined in Data.Scientific Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Loc -> Loc -> Bool Source #(/=) :: Loc -> Loc -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Info -> Info -> Bool Source #(/=) :: Info -> Info -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Lit -> Lit -> Bool Source #(/=) :: Lit -> Lit -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Body -> Body -> Bool Source #(/=) :: Body -> Body -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Stmt -> Stmt -> Bool Source #(/=) :: Stmt -> Stmt -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Con -> Con -> Bool Source #(/=) :: Con -> Con -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Bang -> Bang -> Bool Source #(/=) :: Bang -> Bang -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Language.Haskell.TH.Syntax Methods(==) :: Role -> Role -> Bool Source #(/=) :: Role -> Role -> Bool Source # Instance detailsDefined in Language.Haskell.TH.Syntax Methods Instance detailsDefined in Data.Text.Short.Internal Methods Instance detailsDefined in Data.Time.LocalTime.Internal.LocalTime Methods Instance detailsDefined in Data.Time.LocalTime.Internal.TimeOfDay Methods Instance detailsDefined in Data.Time.LocalTime.Internal.TimeZone Methods Instance details Methods Instance detailsDefined in Data.Time.Clock.Internal.UniversalTime Methods Instance detailsDefined in Data.Time.Clock.Internal.UTCTime Methods(==) :: UTCTime -> UTCTime -> Bool