Skip to content

Commit

Permalink
Fix outdated comment about foldr in the Prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
ehamberg committed Jun 21, 2018
1 parent 4d887ff commit e859560
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions typeclassopedia.md
Expand Up @@ -1315,9 +1315,6 @@ instance Foldable Tree where
foldMap f (Node l k r) = foldMap f l `mappend` f k `mappend` foldMap f r
```

The `foldr` function has a type similar to the `foldr` found in the `Prelude`, but
more general, since the `foldr` in the `Prelude` works only on lists.

The `Foldable` module also provides instances for `Maybe` and `Array`;
additionally, many of the data structures found in the standard [containers library](http://hackage.haskell.org/package/containers) (for example, `Map`, `Set`, `Tree`,
and `Sequence`) provide their own `Foldable` instances.
Expand Down

0 comments on commit e859560

Please sign in to comment.