YAML tags are a way to attach additional application-specific type information to YAML values. It would be nice to be able to have Pkl produce YAML tags.
This might be done by adding a new class in pkl:yaml:
class TagDirective {
tag: String(startsWith("!"))
value: Any
}
When YamlRenderer encounters this type, it would render tag as a YAML tag then render value as if the TagDirective was not present.