Maps to Yaml preserving key order


#1

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


#2

@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


#3

Thanks for the pointer.


#4

@gcsolaroli: You’re welcome! :slightly_smiling_face: