Skip to content
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

Use NonEmpty to eliminate some partial functions #1499

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

kostmo
Copy link
Member

@kostmo kostmo commented Sep 8, 2023

As title.

@kostmo kostmo requested a review from byorgey September 8, 2023 16:23
@kostmo kostmo marked this pull request as ready for review September 8, 2023 16:23
@@ -108,41 +108,41 @@ swarmAttrMap =
]

entityAttr :: AttrName
entityAttr = fst $ head worldAttributes
entityAttr = NE.head worldAttributeNames
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it, can we move the definition of entityAttr here and then have the definition of worldAttributeNames depend on this instead of vice versa? As it stands, someone might edit the definition of worldAttributeNames without realizing it would affect entityAttr.

@kostmo kostmo force-pushed the refactor/total-functions-with-nonempty branch from dc2144d to d8bd579 Compare September 9, 2023 14:48
@kostmo kostmo added the merge me Trigger the merge process of the Pull request. label Sep 9, 2023
@mergify mergify bot merged commit ae70790 into main Sep 9, 2023
9 checks passed
@mergify mergify bot deleted the refactor/total-functions-with-nonempty branch September 9, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants