universe-reverse-instances-1.0: instances of standard classes that are made possible by enumerations

Safe HaskellSafe
LanguageHaskell2010

Data.Universe.Instances.Eq

Contents

Synopsis
  • class Eq a where

    Documentation

    An Eq instance for functions, given the input is Finite and the output is Eq. Compares pointwise.

    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.

    Minimal complete definition: either == or /=.

    Minimal complete definition

    (==) | (/=)

    Methods

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

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

    Instances
    Eq Bool 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: Bool -> Bool -> Bool #

    (/=) :: Bool -> Bool -> Bool #

    Eq Char 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: Char -> Char -> Bool #

    (/=) :: Char -> Char -> Bool #

    Eq Double 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: Double -> Double -> Bool #

    (/=) :: Double -> Double -> Bool #

    Eq Float 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: Float -> Float -> Bool #

    (/=) :: Float -> Float -> Bool #

    Eq Int 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: Int -> Int -> Bool #

    (/=) :: Int -> Int -> Bool #

    Eq Int8

    Since: base-2.1

    Instance details

    Defined in GHC.Int

    Methods

    (==) :: Int8 -> Int8 -> Bool #

    (/=) :: Int8 -> Int8 -> Bool #

    Eq Int16

    Since: base-2.1

    Instance details

    Defined in GHC.Int

    Methods

    (==) :: Int16 -> Int16 -> Bool #

    (/=) :: Int16 -> Int16 -> Bool #

    Eq Int32

    Since: base-2.1

    Instance details

    Defined in GHC.Int

    Methods

    (==) :: Int32 -> Int32 -> Bool #

    (/=) :: Int32 -> Int32 -> Bool #

    Eq Int64

    Since: base-2.1

    Instance details

    Defined in GHC.Int

    Methods

    (==) :: Int64 -> Int64 -> Bool #

    (/=) :: Int64 -> Int64 -> Bool #

    Eq Integer 
    Instance details

    Defined in GHC.Integer.Type

    Methods

    (==) :: Integer -> Integer -> Bool #

    (/=) :: Integer -> Integer -> Bool #

    Eq Ordering 
    Instance details

    Defined in GHC.Classes

    Eq Word 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: Word -> Word -> Bool #

    (/=) :: Word -> Word -> Bool #

    Eq Word8

    Since: base-2.1

    Instance details

    Defined in GHC.Word

    Methods

    (==) :: Word8 -> Word8 -> Bool #

    (/=) :: Word8 -> Word8 -> Bool #

    Eq Word16

    Since: base-2.1

    Instance details

    Defined in GHC.Word

    Methods

    (==) :: Word16 -> Word16 -> Bool #

    (/=) :: Word16 -> Word16 -> Bool #

    Eq Word32

    Since: base-2.1

    Instance details

    Defined in GHC.Word

    Methods

    (==) :: Word32 -> Word32 -> Bool #

    (/=) :: Word32 -> Word32 -> Bool #

    Eq Word64

    Since: base-2.1

    Instance details

    Defined in GHC.Word

    Methods

    (==) :: Word64 -> Word64 -> Bool #

    (/=) :: Word64 -> Word64 -> Bool #

    Eq () 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: () -> () -> Bool #

    (/=) :: () -> () -> Bool #

    Eq TyCon 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: TyCon -> TyCon -> Bool #

    (/=) :: TyCon -> TyCon -> Bool #

    Eq Module 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: Module -> Module -> Bool #

    (/=) :: Module -> Module -> Bool #

    Eq TrName 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: TrName -> TrName -> Bool #

    (/=) :: TrName -> TrName -> Bool #

    Eq BigNat 
    Instance details

    Defined in GHC.Integer.Type

    Methods

    (==) :: BigNat -> BigNat -> Bool #

    (/=) :: BigNat -> BigNat -> Bool #

    Eq AsyncException 
    Instance details

    Defined in GHC.IO.Exception

    Eq ArrayException 
    Instance details

    Defined in GHC.IO.Exception

    Eq ExitCode 
    Instance details

    Defined in GHC.IO.Exception

    Eq IOErrorType

    Since: base-4.1.0.0

    Instance details

    Defined in GHC.IO.Exception

    Eq MaskingState 
    Instance details

    Defined in GHC.IO

    Eq IOException

    Since: base-4.1.0.0

    Instance details

    Defined in GHC.IO.Exception

    Eq All 
    Instance details

    Defined in Data.Semigroup.Internal

    Methods

    (==) :: All -> All -> Bool #

    (/=) :: All -> All -> Bool #

    Eq Any 
    Instance details

    Defined in Data.Semigroup.Internal

    Methods

    (==) :: Any -> Any -> Bool #

    (/=) :: Any -> Any -> Bool #

    Eq Lexeme 
    Instance details

    Defined in Text.Read.Lex

    Methods

    (==) :: Lexeme -> Lexeme -> Bool #

    (/=) :: Lexeme -> Lexeme -> Bool #

    Eq Number 
    Instance details

    Defined in Text.Read.Lex

    Methods

    (==) :: Number -> Number -> Bool #

    (/=) :: Number -> Number -> Bool #

    Eq GeneralCategory 
    Instance details

    Defined in GHC.Unicode

    Eq SrcLoc 
    Instance details

    Defined in GHC.Stack.Types

    Methods

    (==) :: SrcLoc -> SrcLoc -> Bool #

    (/=) :: SrcLoc -> SrcLoc -> Bool #

    Eq a => Eq [a] 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: [a] -> [a] -> Bool #

    (/=) :: [a] -> [a] -> Bool #

    Eq a => Eq (Maybe a) 
    Instance details

    Defined in GHC.Base

    Methods

    (==) :: Maybe a -> Maybe a -> Bool #

    (/=) :: Maybe a -> Maybe a -> Bool #

    Eq a => Eq (Ratio a) 
    Instance details

    Defined in GHC.Real

    Methods

    (==) :: Ratio a -> Ratio a -> Bool #

    (/=) :: Ratio a -> Ratio a -> Bool #

    Eq a => Eq (ZipList a) 
    Instance details

    Defined in Control.Applicative

    Methods

    (==) :: ZipList a -> ZipList a -> Bool #

    (/=) :: ZipList a -> ZipList a -> Bool #

    Eq a => Eq (First a) 
    Instance details

    Defined in Data.Monoid

    Methods

    (==) :: First a -> First a -> Bool #

    (/=) :: First a -> First a -> Bool #

    Eq a => Eq (Last a) 
    Instance details

    Defined in Data.Monoid

    Methods

    (==) :: Last a -> Last a -> Bool #

    (/=) :: Last a -> Last a -> Bool #

    Eq a => Eq (Dual a) 
    Instance details

    Defined in Data.Semigroup.Internal

    Methods

    (==) :: Dual a -> Dual a -> Bool #

    (/=) :: Dual a -> Dual a -> Bool #

    Eq a => Eq (Sum a) 
    Instance details

    Defined in Data.Semigroup.Internal

    Methods

    (==) :: Sum a -> Sum a -> Bool #

    (/=) :: Sum a -> Sum a -> Bool #

    Eq a => Eq (Product a) 
    Instance details

    Defined in Data.Semigroup.Internal

    Methods

    (==) :: Product a -> Product a -> Bool #

    (/=) :: Product a -> Product a -> Bool #

    Eq a => Eq (NonEmpty a) 
    Instance details

    Defined in GHC.Base

    Methods

    (==) :: NonEmpty a -> NonEmpty a -> Bool #

    (/=) :: NonEmpty a -> NonEmpty a -> Bool #

    (Finite a, Eq b) => Eq (a -> b) # 
    Instance details

    Defined in Data.Universe.Instances.Eq

    Methods

    (==) :: (a -> b) -> (a -> b) -> Bool #

    (/=) :: (a -> b) -> (a -> b) -> Bool #

    (Eq a, Eq b) => Eq (Either a b) 
    Instance details

    Defined in Data.Either

    Methods

    (==) :: Either a b -> Either a b -> Bool #

    (/=) :: Either a b -> Either a b -> Bool #

    (Eq a, Eq b) => Eq (a, b) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b) -> (a, b) -> Bool #

    (/=) :: (a, b) -> (a, b) -> Bool #

    (Ix i, Eq e) => Eq (Array i e)

    Since: base-2.1

    Instance details

    Defined in GHC.Arr

    Methods

    (==) :: Array i e -> Array i e -> Bool #

    (/=) :: Array i e -> Array i e -> Bool #

    (Eq k, Eq a) => Eq (Map k a) 
    Instance details

    Defined in Data.Map.Internal

    Methods

    (==) :: Map k a -> Map k a -> Bool #

    (/=) :: Map k a -> Map k a -> Bool #

    (Eq a, Eq b, Eq c) => Eq (a, b, c) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c) -> (a, b, c) -> Bool #

    (/=) :: (a, b, c) -> (a, b, c) -> Bool #

    Eq (STArray s i e)

    Since: base-2.1

    Instance details

    Defined in GHC.Arr

    Methods

    (==) :: STArray s i e -> STArray s i e -> Bool #

    (/=) :: STArray s i e -> STArray s i e -> Bool #

    Eq a => Eq (Const a b) 
    Instance details

    Defined in Data.Functor.Const

    Methods

    (==) :: Const a b -> Const a b -> Bool #

    (/=) :: Const a b -> Const a b -> Bool #

    Eq (f a) => Eq (Alt f a) 
    Instance details

    Defined in Data.Semigroup.Internal

    Methods

    (==) :: Alt f a -> Alt f a -> Bool #

    (/=) :: Alt f a -> Alt f a -> Bool #

    (Eq a, Eq b, Eq c, Eq d) => Eq (a, b, c, d) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d) -> (a, b, c, d) -> Bool #

    (/=) :: (a, b, c, d) -> (a, b, c, d) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e) => Eq (a, b, c, d, e) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e) -> (a, b, c, d, e) -> Bool #

    (/=) :: (a, b, c, d, e) -> (a, b, c, d, e) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f) => Eq (a, b, c, d, e, f) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> Bool #

    (/=) :: (a, b, c, d, e, f) -> (a, b, c, d, e, f) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g) => Eq (a, b, c, d, e, f, g) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> Bool #

    (/=) :: (a, b, c, d, e, f, g) -> (a, b, c, d, e, f, g) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h) => Eq (a, b, c, d, e, f, g, h) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h) -> (a, b, c, d, e, f, g, h) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i) => Eq (a, b, c, d, e, f, g, h, i) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h, i) -> (a, b, c, d, e, f, g, h, i) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j) => Eq (a, b, c, d, e, f, g, h, i, j) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h, i, j) -> (a, b, c, d, e, f, g, h, i, j) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k) => Eq (a, b, c, d, e, f, g, h, i, j, k) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h, i, j, k) -> (a, b, c, d, e, f, g, h, i, j, k) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l) => Eq (a, b, c, d, e, f, g, h, i, j, k, l) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h, i, j, k, l) -> (a, b, c, d, e, f, g, h, i, j, k, l) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l, Eq m) => Eq (a, b, c, d, e, f, g, h, i, j, k, l, m) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m) -> (a, b, c, d, e, f, g, h, i, j, k, l, m) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l, Eq m, Eq n) => Eq (a, b, c, d, e, f, g, h, i, j, k, l, m, n) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n) -> Bool #

    (Eq a, Eq b, Eq c, Eq d, Eq e, Eq f, Eq g, Eq h, Eq i, Eq j, Eq k, Eq l, Eq m, Eq n, Eq o) => Eq (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) 
    Instance details

    Defined in GHC.Classes

    Methods

    (==) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Bool #

    (/=) :: (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) -> Bool #

    Orphan instances

    (Finite a, Eq b) => Eq (a -> b) # 
    Instance details

    Methods

    (==) :: (a -> b) -> (a -> b) -> Bool #

    (/=) :: (a -> b) -> (a -> b) -> Bool #