Skip to content

Fix traversal of CoreFn CaseAlternative Binders #4

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

Open
wants to merge 2 commits into
base: es-modules
Choose a base branch
from

Conversation

MaybeJustJames
Copy link

Commit 5734b10 re-implemented the Purescript everythingOnValues function locally. While simplifying the function for the specific use-case vital functionality was left out for traversing CaseAlternatives. This commit re-introduces the removed functionality and adds a regression test.

Commit 5734b10 re-implemented the Purescript `everythingOnValues`
function locally. While simplifying the function for the specific
use-case vital functionality was left out for traversing
CaseAlternatives. This commit re-introduces the removed functionality
and adds a regression test.
@MaybeJustJames
Copy link
Author

The test failure is a result of re-exports remaining after DCE. This is fixed by #3

onBinder b@(NamedBinder _ _ b1) = onBinder' b ++ onBinder b1
onBinder b = onBinder' b

onBinder' :: Binder Ann -> [Key]
Copy link
Member

Choose a reason for hiding this comment

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

I'd love for this to have a more descriptive name.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah me too. Is it possible for you to pull in commits from MaybeJustJames/zephyr so I can clean up there?

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