[GHC] #2528: documentation for nub and nubBy should be corrected, extended or removed.

GHC ghc-devs at haskell.org
Fri Nov 7 16:48:55 UTC 2014


#2528: documentation for nub and  nubBy should be corrected, extended or removed.
-----------------------------------+------------------------------------
        Reporter:  jdressel        |            Owner:  ekmett
            Type:  bug             |           Status:  new
        Priority:  normal          |        Milestone:  7.10.1
       Component:  Core Libraries  |          Version:  6.8.2
      Resolution:                  |         Keywords:
Operating System:  Linux           |     Architecture:  Unknown/Multiple
 Type of failure:  None/Unknown    |       Difficulty:  Unknown
       Test Case:                  |       Blocked By:
        Blocking:                  |  Related Tickets:
-----------------------------------+------------------------------------

Comment (by Herbert Valerio Riedel <hvr@…>):

 In [changeset:"a2e7bbfe7656cf7dbf1af4da5c077ac0b5d41127/ghc"]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="a2e7bbfe7656cf7dbf1af4da5c077ac0b5d41127"
 Preserve argument order to (==)/eq in nub and nubBy

 This makes nub and nubBy behave as specified in the Haskell 98 Report.

 This reverts 0ad9def53842e86fb292eccb810190711c42d7c5, and
 fixes #3280, #7913 and #2528 (properly).

 Before this change, the output of `T2528` was (4x wrong):
 ```
 [A,B]
 [1,2]
 False
 False
 ```

 Reviewed By: dfeuer, ekmett, austin, hvr

 Differential Revision: https://phabricator.haskell.org/D238
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/2528#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list