Foldable is a class of data structures that can be folded to a summary value.
Many of these functions generalize Prelude, Control.Monad and Data.List functions of the same names from lists to any Foldable functor. To avoid ambiguity, either import those modules hiding these names or qualify uses of these function names with an alias for this module.
class Foldable t where
Data structures that can be folded.
Minimal complete definition
[foldMap][5] | [foldr][6]
Full documentation: http://hackage.haskell.org/package/base-4.7.0.1/docs/Data-Foldable.html