#2528: nub not as reliable as nubBy
-----------------------------+----------------------------------------------
Reporter: jdressel | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.10.1
Component: libraries/base | Version: 6.8.2
Resolution: | Keywords:
Testcase: | Blockedby:
Difficulty: Unknown | Os: Linux
Blocking: | Architecture: Unknown/Multiple
Failure: None/Unknown |
-----------------------------+----------------------------------------------
Changes (by maeder):
* owner: simonmar =>
* failure: => None/Unknown
* status: closed => new
* resolution: fixed =>
Comment:
The last change made the implementation and reported prelude version (and
thus the documentation of elem_by) inconsistent, see
http://www.haskell.org/pipermail/libraries/2011-September/016758.html
I propose to reverse the order or args under "USE_REPORT_PRELUDE", too,
because I think, this is the right behavior and has the least impact.
The filter predicate could also be written as "(not . (`eq` x))".
"elem_by eq y xs" could be replaced by "any (eq y) xs" (and elem_by
deleted), but I don't know if this has any performance impacts.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2528#comment:10>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs