
#9330: Introduce shortcut for "on (==)" much like there's a shortcut for "on compare". -------------------------------------+------------------------------------- Reporter: frerich | Owner: Type: feature | Status: new request | Milestone: Priority: normal | Version: 7.8.2 Component: | Keywords: libraries/base | Operating System: Unknown/Multiple Resolution: | Type of failure: None/Unknown Differential Revisions: | Test Case: Architecture: | Blocking: Unknown/Multiple | Difficulty: Unknown | Blocked By: | Related Tickets: | -------------------------------------+------------------------------------- Comment (by hvr): Fairbairn-threshold, anyone? :) {{{#!hs
length "equating" > length "on (==)" True }}}
(fwiw, I would rather see `on` being exported by `Prelude` than add `equating` to `Data.Eq`) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9330#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler