diff options
| author | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-19 17:53:33 +0200 |
|---|---|---|
| committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-09-19 17:54:43 +0200 |
| commit | d48fed4e61afc2b51ac3a513290a66d89c929059 (patch) | |
| tree | 57c1690bd84cc7ba8b9a9b7de2247a08b89a7e41 | |
| parent | e1c6352ad3c45f7d03655e1f3fe1595c2a9b7796 (diff) | |
| download | haskell-d48fed4e61afc2b51ac3a513290a66d89c929059.tar.gz | |
Define fixity for `Data.Foldable.{elem,notElem}`
This was probably just an oversight. With this change the fixity matches
that from `Data.List.{elem,notElem`}`.
Addresses #9610
Reviewed By: austin, ekmett
Differential Revision: https://phabricator.haskell.org/D227
| -rw-r--r-- | libraries/base/Data/Foldable.hs | 2 | ||||
| -rw-r--r-- | libraries/base/changelog.md | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libraries/base/Data/Foldable.hs b/libraries/base/Data/Foldable.hs index f6f787b628..b839106c93 100644 --- a/libraries/base/Data/Foldable.hs +++ b/libraries/base/Data/Foldable.hs @@ -71,6 +71,8 @@ import GHC.Arr ( Array(..), Ix(..), elems ) import GHC.Base hiding ( foldr ) import GHC.Num ( Num(..) ) +infix 4 `elem`, `notElem` + -- | Data structures that can be folded. -- -- Minimal complete definition: 'foldMap' or 'foldr'. diff --git a/libraries/base/changelog.md b/libraries/base/changelog.md index 6f3c8cc754..1dbada01ba 100644 --- a/libraries/base/changelog.md +++ b/libraries/base/changelog.md @@ -29,6 +29,9 @@ * Add `Data.List.uncons` list destructor (#9550) + * Set fixity for `Data.Foldable.{elem,notElem}` to match the + conventional one set for `Data.List.{elem,notElem}` (#9610) + ## 4.7.0.1 *Jul 2014* * Bundled with GHC 7.8.3 |
