| Copyright | (c) 2008--2010 Universiteit Utrecht |
|---|---|
| License | BSD3 |
| Maintainer | generics@haskell.org |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell98 |
Generics.MultiRec.Eq
Contents
Description
Generic equality.
Generic equality
Methods
heq :: (forall ix. phi ix -> r ix -> r ix -> Bool) -> phi ix -> f r ix -> f r ix -> Bool Source
Instances
| HEq phi U | |
| Eq a => HEq phi (K a) | For constant types, we make use of the standard equality function. |
| El phi xi => HEq phi (I xi) | |
| (Constructor c, HEq phi f) => HEq phi (C c f) | |
| HEq phi f => HEq phi ((:>:) f ix) | |
| (Eq1 f, HEq phi g) => HEq phi ((:.:) f g) | |
| (HEq phi f, HEq phi g) => HEq phi ((:*:) f g) | |
| (HEq phi f, HEq phi g) => HEq phi ((:+:) f g) |