until -package:numeric-prelude -package:base-prelude -package:distribution-opensuse -package:Cabal -package:singletons-base -package:prelude-compat -package:intro package:sparse-linear-algebra

This function makes some default choices on the modifyInspectGuarded machinery: convergence is assessed using the squared L2 distance between consecutive states, and divergence is detected when this function is increasing between pairs of measurements.
untilConvergedG0 is a special case of untilConvergedG that assesses convergence based on the L2 distance to a known solution xKnown
", monadic version