[commit: ghc] master: Tweak wording in documentation (a5eaa0f)

git at git.haskell.org git at git.haskell.org
Wed Jun 20 00:16:19 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a5eaa0f9371df8ca0c733ffe56fc1eb59d8ad6a4/ghc

>---------------------------------------------------------------

commit a5eaa0f9371df8ca0c733ffe56fc1eb59d8ad6a4
Author: Victor Nawothnig <Victor.Nawothnig at gmail.de>
Date:   Tue Jun 19 17:10:28 2018 -0400

    Tweak wording in documentation
    
    Reviewers: hvr, bgamari
    
    Subscribers: rwbarton, thomie, carter
    
    Differential Revision: https://phabricator.haskell.org/D4871


>---------------------------------------------------------------

a5eaa0f9371df8ca0c733ffe56fc1eb59d8ad6a4
 libraries/base/Control/Monad.hs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libraries/base/Control/Monad.hs b/libraries/base/Control/Monad.hs
index 09066c7..dd87418 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 @('.')@:
 --



More information about the ghc-commits mailing list