Functions like `sum` were generalized and placed into `Data.Foldable`, and now they fail to terminate for large arrays due to stack overflow. We either need to move them back or make the new functions tail recursive.
Functions like
sumwere generalized and placed intoData.Foldable, and now they fail to terminate for large arrays due to stack overflow.We either need to move them back or make the new functions tail recursive.