HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleutility-ht-0.0.17.2Haskell98

Data.Record.HT

  • 2 values
valuecompare :: [a -> a -> Ordering] -> a -> a -> Ordering
#

Lexicographically compare a list of attributes of two records.

Example:

compare [comparing fst, comparing snd]
valueequal :: [a -> a -> Bool] -> a -> a -> Bool
#

Check whether a selected set of fields of two records is equal.

Example:

equal [equating fst, equating snd]