Recently we added dhall format
support for preserving the ASCII vs. Unicode encoding from the original Dhall file and I was wondering if we should do something similar for preserving trailing vs. leading commas. That way people who prefer to use trailing commas can begin doing so and it wouldn’t break or reformat any existing code in the wild.
There would also be the option of explicitly specifying one or the other comma style via command-line options if you wanted to override the file’s original formatting (similar to how dhall format
still accepts --ascii
and --unicode
for overriding the original formatting).
This is most recently prompted by https://github.com/dhall-lang/dhall-haskell/commit/5f7d46b17922651d0fce76ca0fa1f2c8fb30bf79#commitcomment-49077659 and similar feedback I’ve gotten from others along those lines.