
#7913: Argument order not preserved by nubBy ---------------------------+------------------------------------------------ Reporter: paullik | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Prelude | Version: 7.6.3 Resolution: | Keywords: nubBy Os: Linux | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: ---------------------------+------------------------------------------------ Changes (by simonpj): * status: closed => new * resolution: duplicate => Comment: I see; I'd missed that. We can do one of two things * Simple: change documentation of the "reference" implementation to reverse order of args to `eq`. But (a) reference impl differs from Report; (b) the back to front code is a bit unintuitive. * Still easy: change the order of args in both `elem_by` ''and'' in `nub`, so that the impl matches the reference impl. This is what #2528 should have done in the first place. Disadvantage: it's a change. * Simplest: do nothing Library folk, what do you want? Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7913#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler