Creating a yaml document with different types

Hi,
I’ve been trying to create a yaml document containing kubernetes configs for deployment, routes, etc. I want to use the --documents flag, but I haven’t figured out how to do that since the different parts of the config have different types. Using a list give a type error, and as far as I’ve read there are no tuples in dhall. How do I for instance make a document like this?

---
<some record of type A>
---
<some record of type B>

dhall-kubernetes provides a Resource union type for this purpose. For more details, see:

1 Like

Thank you for the quick answer!

You’re welcome!