Add support for deriving for Eq and Ord. This is needed for #556 since datatypes don't have inh attributes, so equality/ordering attributes are no longer an option. Also this handles polymorphic nonterminals like Maybe or Pair, where additional constraints are needed on the generated instance, where equality/ordering attributes were not an option.
Changes
Add support for deriving for
Eq
andOrd
. This is needed for #556 since datatypes don't have inh attributes, so equality/ordering attributes are no longer an option. Also this handles polymorphic nonterminals likeMaybe
orPair
, where additional constraints are needed on the generated instance, where equality/ordering attributes were not an option.Documentation
https://github.com/melt-umn/melt-website/pull/51, also added tests.