Use https://github.com/RedPRL/sml-final-pretty-printer instead.
A Pretty Printer, based on Philip Wadler's "A prettier printer". But heavily modified to be efficient in a strict language.
Also included is a modified version of Michael Sullivan's ANSI formatting code.