A Haskell library for generic linear-time sorting and grouping.