fix syntax in doc comments
authorRoss Paterson <ross@soi.city.ac.uk>
Thu, 27 May 2010 15:07:57 +0000 (15:07 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Thu, 27 May 2010 15:07:57 +0000 (15:07 +0000)
Data/Foldable.hs
Data/Traversable.hs

index df6e52a..ed05a16 100644 (file)
@@ -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
index 30aaee6..0df8bd4 100644 (file)
@@ -62,7 +62,7 @@ import Array
 --
 -- a suitable instance would be
 --
--- > instance Traversable Tree
+-- > instance Traversable Tree where
 -- >    traverse f Empty = pure Empty
 -- >    traverse f (Leaf x) = Leaf <$> f x
 -- >    traverse f (Node l k r) = Node <$> traverse f l <*> f k <*> traverse f r