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

Get rid of partial record fields #27

Open
dag opened this issue May 15, 2012 · 0 comments
Open

Get rid of partial record fields #27

dag opened this issue May 15, 2012 · 0 comments

Comments

@dag
Copy link
Owner

dag commented May 15, 2012

Like affixes. For some shapes, it will result in a runtime error. If instead the field is added to all shapes (possibly wrapped in a Maybe) it would permit adding affixes to shapes that don't have affixes.

A solution might be to not use records and instead write the lenses manually, and use partial lenses for partial fields. Using total lenses wrapped in Maybe might not satisfy the lens laws?

Of this is the right solution it might be useful to add helpers to data-lens-template for automating this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant