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

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). Tom

There are some gems in compiler/utils/Util.hs too.
On Dec 9, 2014 4:50 PM,
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).
Tom _______________________________________________ Libraries mailing list Libraries@haskell.org http://www.haskell.org/mailman/listinfo/libraries

On Tue, 9 Dec 2014, amindfv@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...

On 2014-12-09 at 22:50:30 +0100, amindfv@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
participants (4)
-
amindfv@gmail.com
-
David Feuer
-
Henning Thielemann
-
Herbert Valerio Riedel