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

Herbert Valerio Riedel hvr at gnu.org
Thu Dec 11 08:33:02 UTC 2014


On 2014-12-09 at 22:50:30 +0100, 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).

fyi, https://ghc.haskell.org/trac/ghc/ticket/2659 &
     https://ghc.haskell.org/trac/ghc/ticket/9004


More information about the Libraries mailing list