summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Paterson <ross@soi.city.ac.uk>2006-02-09 00:49:01 +0000
committerRoss Paterson <ross@soi.city.ac.uk>2006-02-09 00:49:01 +0000
commit359978a6a2bc35d70589e4208989e855b0de4c89 (patch)
treed11673e05878bc3b07761e8b4ddb9589b718549d
parent0aaf0b91b945ae0f4830f65f45d7712c88ae4435 (diff)
downloadhaskell-359978a6a2bc35d70589e4208989e855b0de4c89.tar.gz
typo in comment in Foldable class
-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 fcba1596ed..01eff042ce 100644
--- a/libraries/base/Data/Foldable.hs
+++ b/libraries/base/Data/Foldable.hs
@@ -69,7 +69,7 @@ import GHC.Exts (build)
-- > instance Foldable Tree
-- > foldMap f Empty = mempty
-- > foldMap f (Leaf x) = f x
--- > foldMap f (Node l k r) = foldMap f l `mappend` f k `mappend foldMap` f r
+-- > foldMap f (Node l k r) = foldMap f l `mappend` f k `mappend` foldMap f r
--
-- This is suitable even for abstract types, as the monoid is assumed
-- to satisfy the monoid laws.