pretty
pretty copied to clipboard
Add functions for coverting between annotated and unannotated Docs.
docToUnitDoc :: Doc -> Ann.Doc ()unitDocToAnnotatedDoc :: Ann.Doc () -> Ann.Doc a
These two functions together allow you to combine together annotated
and unannotated documents. In particular, it lets you embed a unannotated Doc
inside another, annotated Doc a of arbitrary annotation type.
It indeed makes sense to have these. Thanks!
I'll leave this open now, I have to think about naming. Please ping me if nothing happens in two weeks.
@phadej, friendly ping?
@phadej May I ask the status of this PR?