haskpy.typeclasses.equality.Eq

Eq

class Eq[source]

Bases: Type

Equality and inequality comparison

Minimal complete definition:

(__eq__ | __ne__) & sample_type

Minimal complete definition for type constructors:

(__eq_generic__ | (__eq_test__ & (__eq__ | __ne__))) & sample_eq_type

__eq__(other)[source]

Equality comparison: Eq a => a -> a -> bool

Can be used as == operator.

The default implementation uses __ne__.

__hash__ = None
__ne__(other)[source]

Inequality comparison: Eq a => a -> a -> bool

Can be used as != operator.

The default implementation uses __eq__.