https://www.stackage.org/haddock/lts-15.4/base-4.13.0.0/Prel...
As I mentioned, foldMap requires associativity. Per your link I guess it also requires existence of a neutral element (whereas foldr instead makes you specify a starting element).
https://www.stackage.org/haddock/lts-15.4/base-4.13.0.0/Prel...