projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc4bde0
)
typo in comment in Foldable class
author
Ross Paterson
<ross@soi.city.ac.uk>
Thu, 9 Feb 2006 00:49:01 +0000
(
00:49
+0000)
committer
Ross Paterson
<ross@soi.city.ac.uk>
Thu, 9 Feb 2006 00:49:01 +0000
(
00:49
+0000)
Data/Foldable.hs
patch
|
blob
|
history
diff --git
a/Data/Foldable.hs
b/Data/Foldable.hs
index
fcba159
..
01eff04
100644
(file)
--- a/
Data/Foldable.hs
+++ b/
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.