
#12044: Remove sortWith in favor of sortOn -------------------------------------+------------------------------------- Reporter: cblp | Owner: Type: feature request | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 7.10.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Other | Test Case: Blocked By: | Blocking: Related Tickets: #2659 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by thomie): I don't understand what the "for good reasons" means in the following [https://mail.haskell.org/pipermail/libraries/2014-April/022502.html comment]:
that name just reminded me of GHC.Exts.sortWith: http://hackage.haskell.org/package/base-4.6.0.1/docs/GHC- Exts.html#v:sortWith
Which actually has the right type signature, but it's still implemented as compare (f x) (f y), and for good reasons too in this case.
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12044#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler