summaryrefslogtreecommitdiff
path: root/libraries/base/changelog.md
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2014-11-07 17:38:59 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2014-11-07 17:46:34 +0100
commita2e7bbfe7656cf7dbf1af4da5c077ac0b5d41127 (patch)
tree90efbdfdcc83c31a5a0bce09b5eb650343ac7e55 /libraries/base/changelog.md
parentdf3b1d43cc862fe03f0724a9c0ac9e7cecdf4605 (diff)
downloadhaskell-a2e7bbfe7656cf7dbf1af4da5c077ac0b5d41127.tar.gz
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
Diffstat (limited to 'libraries/base/changelog.md')
-rw-r--r--libraries/base/changelog.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md
index 86595d62e8..2fa25ae06e 100644
--- a/libraries/base/changelog.md
+++ b/libraries/base/changelog.md
@@ -93,6 +93,10 @@
* Add `isSubsequenceOf` to `Data.List` (#9767)
+ * The arguments to `==` and `eq` in `Data.List.nub` and `Data.List.nubBy`
+ are swapped, such that `Data.List.nubBy (<) [1,2]` now returns `[1]`
+ instead of `[1,2]` (#2528, #3280, #7913)
+
## 4.7.0.1 *Jul 2014*
* Bundled with GHC 7.8.3