Text this: Extensional constructs in intensional type theory