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

Add toPartial function #52

Open
vrom911 opened this issue May 28, 2020 · 2 comments
Open

Add toPartial function #52

vrom911 opened this issue May 28, 2020 · 2 comments
Labels
core enhancement New feature or request idea 💡 RFC, feature ideas

Comments

@vrom911
Copy link
Member

vrom911 commented May 28, 2020

toPartial ::Config 'Final -> Config 'Partial
@chshersh
Copy link
Contributor

I think, it should be possible to implement a polymorphic function using Generics:

toPartial :: (Generic f) => f 'Final -> f ('Partial e)

But this is some clever shit 🙂

@chshersh
Copy link
Contributor

chshersh commented Jul 5, 2020

This Reddit question looks similar to what we may want. But it's too much type sorcery. I'm just leaving a comment for history here, may be worth exploring in the future.

@chshersh chshersh added core enhancement New feature or request idea 💡 RFC, feature ideas labels Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request idea 💡 RFC, feature ideas
Projects
None yet
Development

No branches or pull requests

2 participants