-
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
imp: json: The keys of JSON objects are now displayed in alphabetical…
… order, making it stable across different systems and compilers.
- Loading branch information
Showing
2 changed files
with
43 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
071ecd4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Terrific. Shall we reduce the indent to 2 ? It would save some spaces and show more data in narrow windows.
I suppose there's no real way to keep the order of fields as they were defined in Types.hs, right ?
071ecd4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, sort of. If we use
toEncoding
this will maintain the order, but will not have any pretty-printing. If we want pretty-printing we would have to manually define every comparison, which seems like more effort than it's worth.