This library defines Template Haskell functions for deriving the GEq
, GCompare
, GShow
, and GRead
functions from the some
library.
-
GEq tag
is similar to anEq
instance fortag a
except that withgeq
, values of typestag a
andtag b
may be compared, and in the case of equality, evidence that the typesa
andb
are equal is provided. -
GCompare tag
is similar to the above forOrd
, and providesgcompare
, giving aGOrdering
that gives similar evidence of type equality when values match. -
GShow tag
means thattag a
has (the equivalent of) aShow
instance. -
GRead tag
means thattag a
has (the equivalent of) aRead
instance.