Text package:prettyprinter

Deprecated: Use Prettyprinter.Render.Text instead.
Invariants: at least two characters long, does not contain 'n'. For empty documents, there is Empty; for singleton documents, there is Char; newlines should be replaced by e.g. Line. Since the frequently used length of Text is O(length), we cache it in this constructor.
Render an unannotated SimpleDocStream as plain Text.
A utility for producing indentation etc.
>>> textSpaces 3
"   "
This produces much better Core than the equivalent
T.replicate n " "
(See https://github.com/quchen/prettyprinter/issues/131.)
length is O(n), so we cache it in the Int field.
(unsafeTextWithoutNewlines s) contains the literal string s. The string must not contain any newline characters, since this is an invariant of the Text constructor.
length is O(n), so we cache it in the Int field.