Currently Test.Tasty.Ingredients.ConsoleReporter.computeAlignment evaluation is extremely inefficient: firstly because data Maximum lacks strictness annotations, and secondly because foldTestTree operates not even over Maximum a, but over Int -> Maximum a.
The patch improves efficiency of computeAlignment and arguably makes its implementation simpler.
Currently
Test.Tasty.Ingredients.ConsoleReporter.computeAlignment
evaluation is extremely inefficient: firstly becausedata Maximum
lacks strictness annotations, and secondly becausefoldTestTree
operates not even overMaximum a
, but overInt -> Maximum a
.The patch improves efficiency of
computeAlignment
and arguably makes its implementation simpler.CC @martijnbastiaan for review.