utility-ht-0.0.10: Various small helper functions for Lists, Maybes, Tuples, Functions
Data.Record.HT
Synopsis
compare :: [a -> a -> Ordering] -> a -> a -> OrderingSource
Lexicographically compare a list of attributes of two records.
Example:
compare [comparing fst, comparing snd]
equal :: [a -> a -> Bool] -> a -> a -> BoolSource
Check whether a selected set of fields of two records is equal.
equal [equating fst, equating snd]