foldMap package:monoid-subclasses

Generalizes foldMap from Data.Foldable, except the function arguments are prime factors rather than the structure elements.