I have a record type that includes a function:
{foo : int; bar : int -> int}
I want this type to have structural equality. Is there some way I can just mark that the bar should be ignored in equality tests? Or is there some other way around this?
See Don's blog post on this topic, specifically the section Custom Equality and Comparison.
The example he gives is almost identical to the record structure you propose: