summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2021-02-16 15:13:14 -0500
committerBen Gamari <ben@smart-cactus.org>2021-02-16 15:13:14 -0500
commit852c9aaea56a90fa92a8a6beb4741e44b15de351 (patch)
tree55f74f0eb47864c0cbe60b09feb5bfdc74f474e6
parent963e1e9aedf0ee70d4e817640ec9845ed00ce0cf (diff)
downloadhaskell-wip/T19284.tar.gz
base: Fix order of infix declarations in Data.Functorwip/T19284
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 '<$'.
--