diag :: Doc ann -> Diag ann
Convert a Doc to its diagnostic representation.
The functions in the Column, WithPageWidth and Nesting constructors are
sampled with some default values.
Use `diag'` to control the function inputs yourself.
>>> diag $ Doc.align (Doc.vcat ["foo", "bar"])
Column [(10,Nesting [(10,Cat (Text 3 "foo") (Cat (FlatAlt Line Empty) (Text 3 "bar")))])]