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

fix BadPortPull error message; refactor pullPorts not to require tuple #65

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

acl-cqc
Copy link
Collaborator

@acl-cqc acl-cqc commented Dec 6, 2024

Slight extra effort in two callsites (id -> fst is no effort really, so adding a . fst in one callsite) seems more than justified with the simplification in the third callsite (in SolvePatterns) and to the type signature of pullPorts.

It's tempting at this point to drop the "port" nomenclature and just call it "pullToFront" (and parametrize by the "port" type), but given we are using errors called BadPortPull and AmbiguousPortPull, let's keep the naming consistent with those. However, fix the BadPortPull error/message, slightly bodged up in #62

@acl-cqc acl-cqc requested a review from croyzor December 6, 2024 11:19
@acl-cqc acl-cqc merged commit 38fa6ee into main Dec 6, 2024
2 checks passed
@acl-cqc acl-cqc deleted the acl/refactor_pullports3 branch December 6, 2024 12:56
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.

2 participants