Do output generation with Data.Text