summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorVictor Nawothnig <Victor.Nawothnig@gmail.de>2018-06-19 17:10:28 -0400
committerBen Gamari <ben@smart-cactus.org>2018-06-19 20:15:46 -0400
commita5eaa0f9371df8ca0c733ffe56fc1eb59d8ad6a4 (patch)
treee0d5c08bdd510708f0ef22981ff8d83d54a4f4fe /libraries
parent7b8dcd90c5a622146dfdd3b162a1f1b1d262d5cf (diff)
downloadhaskell-a5eaa0f9371df8ca0c733ffe56fc1eb59d8ad6a4.tar.gz
Tweak wording in documentation
Reviewers: hvr, bgamari Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4871
Diffstat (limited to 'libraries')
-rw-r--r--libraries/base/Control/Monad.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/libraries/base/Control/Monad.hs b/libraries/base/Control/Monad.hs
index 09066c70cc..dd87418995 100644
--- a/libraries/base/Control/Monad.hs
+++ b/libraries/base/Control/Monad.hs
@@ -139,11 +139,12 @@ filterM p = foldr (\ x -> liftA2 (\ flg -> if flg then (x:) else id) (p x
infixr 1 <=<, >=>
--- | Left-to-right Kleisli composition of monads.
+-- | Left-to-right composition of Kleisli arrows.
(>=>) :: Monad m => (a -> m b) -> (b -> m c) -> (a -> m c)
f >=> g = \x -> f x >>= g
--- | Right-to-left Kleisli composition of monads. @('>=>')@, with the arguments flipped.
+-- | Right-to-left composition of Kleisli arrows. @('>=>')@, with the arguments
+-- flipped.
--
-- Note how this operator resembles function composition @('.')@:
--