Skip to content

Add instance Ord for Field, FieldLine, SectionArg and Name #9387

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

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

Bodigrim
Copy link
Collaborator

While not terribly interesting semantically, having instance Ord allows to put things into Set and Map and also allows to derive instance Ord for types, containing Field as a record field (my motivational example was Config).

{-# LANGUAGE StandaloneDeriving #-} is there just to attach @since annotations without requiring GHC >= 8.2 or so.

@Bodigrim Bodigrim added the merge me Tell Mergify Bot to merge label Nov 3, 2023
@mergify mergify bot added the merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days label Nov 5, 2023
@mergify mergify bot merged commit 15b5b05 into master Nov 6, 2023
@mergify mergify bot deleted the ord-for-fields branch November 6, 2023 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge delay passed Applied (usually by Mergify) when PR approved and received no updates for 2 days merge me Tell Mergify Bot to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants