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

Avoid boolean blindness with choice #1117

Merged
merged 5 commits into from
Jun 12, 2024
Merged

Conversation

brandonchinn178
Copy link
Collaborator

@brandonchinn178 brandonchinn178 commented Jun 2, 2024

Broken off from #1097 (comment)

Broke off some easy places. Not urgent

Pros:

  • Prevents boolean blindness when constructing literals
  • Prevents mixing up two boolean values

Cons:

Copy link
Member

@amesgen amesgen left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for following up on that comment 😄

There are additional places (eg replacing IsApplicand) that could be changed, but this can happen incrementally.

I like mboes/choice#6, but I would also be fine to merge this now.

@brandonchinn178
Copy link
Collaborator Author

@amesgen Do you know how to update the Nix config to fetch the new choice version that was released to Hackage?

Copy link
Member

@mrkkrp mrkkrp left a comment

Choose a reason for hiding this comment

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

Very nice! I left one minor comment.

ormolu.cabal Outdated Show resolved Hide resolved
@mrkkrp
Copy link
Member

mrkkrp commented Jun 11, 2024

Can you also rebase?

@amesgen
Copy link
Member

amesgen commented Jun 11, 2024

@amesgen Do you know how to update the Nix config to fetch the new choice version that was released to Hackage?

Pushed a corresponding commit 👍 (nix flake update haskellNix)

@brandonchinn178
Copy link
Collaborator Author

@amesgen Thanks. FWIW I don't have Nix installed; it's a bit difficult to make that change to make that change as a non-Nix contributor...

@mrkkrp mrkkrp merged commit 27ec3fb into tweag:master Jun 12, 2024
9 checks passed
@brandonchinn178 brandonchinn178 deleted the bchinn-choice branch June 12, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants