-
Notifications
You must be signed in to change notification settings - Fork 91
Record instances of Show, Eq, Ord etc #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
👍 I would also like to include semigroup, monoid, semiring, ring, and commutative ring instances, which behave similarly to the existing |
We should discuss whether @i-am-tom - For now, only implement those in which the ordering isn't a significant factor. |
Can you remind me what the key sorting is? As Phil pointed out elsewhere I think it might be best not to provide type Person = { name :: String, age :: Int } then they might expect lexicographical ordering based on the order fields are listed in the type synonym. |
Yes, it's not (can't be) the order the keys appear in the source (because they can appear in different orders and are still the same type). We could still provide There could separately exist an newtype for Records that is indexed by the keys in a specific order. |
In that case, shall we leave |
Closing as we have this in the 0.12 branch now 🎉 |
Once we have moved
RowToList
(etc) toPrim
, we can define these instances forRecord
.The text was updated successfully, but these errors were encountered: