Stdlib actually includes a programmable pretty-printer[1], with two instantiations [2][3], as demonstrated below: