Eq is a type class used to determine equality between 2
instances of the same type. Any 2 instances
y are equal
eqv(x, y) is
eqv should form an
const F = eqOf(Option) F.eqv(Some(1), Some(1)) // true F.eqv(Some(1), None) // false
MUST obey the laws defined in EqLaws.
CREDITS: this type class is inspired by the equivalent in Haskell's standard library and the implementation is inspired by the Typelevel Cats project.
Tests equality for two values of type
A by using the type's
Eq instance, falling back to the universal equality
funfix-core) in case no such
Eq<A> is implemented.
Generated using TypeDoc