summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViktor Dukhovni <postfix-users@dukhovni.org>2021-06-30 11:40:29 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-07-02 04:28:34 -0400
commitbb716a93f6505e5851c0716e4b2f4b52d72dc7c7 (patch)
tree3413a7f771fa1d0fa4b2371471ec7818be4c0fbd
parenta820f9002d8f75385aaaa141ac3c6f001e8a9874 (diff)
downloadhaskell-bb716a93f6505e5851c0716e4b2f4b52d72dc7c7.tar.gz
Fix cut/paste typo foldrM should be foldlM
-rw-r--r--libraries/base/Data/Foldable.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/libraries/base/Data/Foldable.hs b/libraries/base/Data/Foldable.hs
index 059320d265..1a3c3d62f5 100644
--- a/libraries/base/Data/Foldable.hs
+++ b/libraries/base/Data/Foldable.hs
@@ -1019,7 +1019,7 @@ foldrM f z0 xs = foldl c return xs z0
-- Another way of thinking about @foldlM@ is that it amounts to an application
-- to @z@ of a Kleisli composition:
--
--- > foldrM f z t =
+-- > foldlM f z t =
-- > flip f a >=> flip f b >=> ... >=> flip f x >=> flip f y $ z
--
-- The monadic effects of @foldlM@ are sequenced from left to right.