Reimplementing pretty-printing with Text.PrettyPrint library