sort-0.0.0.1: A Haskell sorting toolkit

Safe HaskellSafe
LanguageHaskell2010

Data.Sort

Synopsis

Documentation

groupSort :: Ord a => (a -> [a] -> b) -> [a] -> [b] Source #

sort a list of elements with a stable sort, grouping together the equal elements with the argument grouping function

groupSortWith :: (a -> a -> Ordering) -> (a -> [a] -> b) -> [a] -> [b] Source #

sort a list of elements with a stable sort, using the argument compare function determine the ordering, grouping together the equal elements with the grouping function