Maps to Yaml preserving key order

Hello,

is there any option to instruct the dhall-to-yaml converter to preserver the order of the map keys?

I have built a tool that leverages a Yaml configuration to generate some XML, where the order of the tags is relevant to validate; I would love to build my Yaml configuration using Dhall, but at the Yaml file I get right now has its keys (apparently) sorted in alphabetic order.

Cheers,

Giulio Cesare

1 Like

@gcsolaroli: Yeah, this is an problem we need to fix, and we have an issue to track it here: https://github.com/dhall-lang/dhall-haskell/issues/1187

2 Likes

Thanks for the pointer.

@gcsolaroli: You’re welcome! :slightly_smiling_face: