Skip to content

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