tweag / cooked-validators

MIT License
39 stars 11 forks source link

Can we have a better `Monoid` instance for `Constraints`? #173

Closed carlhammann closed 1 year ago

carlhammann commented 1 year ago

The Monoid instance of the Constraint type is very simplistic: The input and output constraint lists are just appended. I'd like a little more domain knowledge "baked into it", so that (something like) the function described in issue #165 is an appropriate congruence on the monoid of constraints.