projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix syntax in doc comments
[ghc-base.git]
/
Data
/
Foldable.hs
diff --git
a/Data/Foldable.hs
b/Data/Foldable.hs
index
df6e52a
..
ed05a16
100644
(file)
--- a/
Data/Foldable.hs
+++ b/
Data/Foldable.hs
@@
-90,7
+90,7
@@
import Array
--
-- a suitable instance would be
--
--- > instance Foldable Tree
+-- > instance Foldable Tree where
-- > 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