summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-02-16 15:13:14 -0500
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-02-18 13:50:46 -0500
commita1126baccee9d2d40cf729ee4714cb2902b36bd3 (patch)
tree00c800402afa50bac828e5860db0318da578ca1f
parentecf967c2af3d9b4d98ba7c49b51f9d5c7bed1534 (diff)
downloadhaskell-a1126baccee9d2d40cf729ee4714cb2902b36bd3.tar.gz
base: Fix order of infix declarations in Data.Functor
As pointed in #19284, previously the order was a bit confusing. This didn't affect the meaning but nevertheless it's much clearer now. Closes #19284.
-rw-r--r--libraries/base/Data/Functor.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/Data/Functor.hs b/libraries/base/Data/Functor.hs
index f79b5442e5..2d8eae7bf0 100644
--- a/libraries/base/Data/Functor.hs
+++ b/libraries/base/Data/Functor.hs
@@ -96,7 +96,7 @@ infixl 4 <$>
(<$>) :: Functor f => (a -> b) -> f a -> f b
(<$>) = fmap
-infixl 4 $>
+infixl 1 <&>
-- | Flipped version of '<$>'.
--
@@ -121,7 +121,7 @@ infixl 4 $>
(<&>) :: Functor f => f a -> (a -> b) -> f b
as <&> f = f <$> as
-infixl 1 <&>
+infixl 4 $>
-- | Flipped version of '<$'.
--