Proposal: move (group|sort)With to Data.List

Henning Thielemann lemming at henning-thielemann.de
Wed Dec 10 00:37:59 UTC 2014


On Tue, 9 Dec 2014, amindfv at gmail.com wrote:

> GHC.Exts contains a couple of really useful functions:
>
> groupWith :: (Ord b) => (a -> b) -> [a] -> [[a]]
> sortWith :: (a -> b) -> [a] -> [a]
>

> There seems to be no reason why they wouldn't be -- more sensibly -- in 
> Data.List. I propose we move them (and "the" while we're at it).

Wasn't this discussed already?

If not, I have this function:
    http://hackage.haskell.org/package/utility-ht-0.0.10/docs/Data-List-Key.html#v:sort


More information about the Libraries mailing list