Data.Record.HT
compare :: [a -> a -> Ordering] -> a -> a -> Ordering Source #
Lexicographically compare a list of attributes of two records.
Example:
compare [comparing fst, comparing snd]
equal :: [a -> a -> Bool] -> a -> a -> Bool Source #
Check whether a selected set of fields of two records is equal.
equal [equating fst, equating snd]