Closed
Description
The results in Algebra.Operations.CommutativeMonoid
would really benefit from being proved over a suitable Foldable
structure rather than individually for List
/Vec
/Vector
etc.
See https://hackage.haskell.org/package/base-4.12.0.0/docs/Data-Foldable.html
Perhaps someone whose familiar with it, could suggest whether we can leverage dependant types to improve the definition somehow?