Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upEnable Ord Record instance and clarify its equivalence to compiler derived Ord #176
Comments
This comment has been minimized.
This comment has been minimized.
|
I’d also be fine with this - I wasn’t really sure why the alphabetical label ordering was thought to be a problem, given that’s how derived instances work, and how generics did. It needs documenting somewhere of course, but I don’t think it’s particularly strange - it seems “obvious“ that there would need to be some canonical ordering, given record labels are a set. |
garyb
closed this
in
#180
Jul 17, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
natefaubion commentedMay 30, 2018
Compiler derived Ord for records is the same as RowToList ordering. I'd suggest we enable it (it's currently commented out) and note the equivalence between: