Open judah opened 4 years ago
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.
Doc
Doc a
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?
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, annotatedDoc a
of arbitrary annotation type.