base-4.2.0.0: Basic librariesSource codeContentsIndex
Data.Eq
Portabilityportable
Stabilitystable
Maintainerlibraries@haskell.org
Description
Equality
Synopsis
class Eq a where
(==) :: a -> a -> Bool
(/=) :: a -> a -> Bool
Documentation
class Eq a whereSource

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 /=.

Methods
(==) :: a -> a -> BoolSource
(/=) :: a -> a -> BoolSource
Produced by Haddock version 2.6.0