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

Identity-based local #221

Open
j-mie6 opened this issue Dec 27, 2023 · 0 comments
Open

Identity-based local #221

j-mie6 opened this issue Dec 27, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@j-mie6
Copy link
Owner

j-mie6 commented Dec 27, 2023

Sometimes, a local combinator just needs to restore an old state, as opposed to adjusting it on entry. This can be captured by reg.local(identity _)(p), but this could be more concisely represented as reg.local(p) -- so long as this does not cause inference problems with the existing local combinator that takes a Parsley[A => A]

@j-mie6 j-mie6 added the enhancement New feature or request label Dec 27, 2023
@j-mie6 j-mie6 added this to the Parsley 5 milestone Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant