Refactor MonadUtils and friends to export functions constrained by Foldable instead of hard-coded []
MonadUtils
exports versions of foldlM
, foldlM_
and foldrM
specialised to []
. Bag
also defines its own foldM
-style combinators. There are probably some other examples. We have had Data.Foldable
now for some time, so use it.