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

Using a custom pickler to replace one or more values in an immutable record #114

Open
dallinbeutler opened this issue Jul 10, 2019 · 0 comments

Comments

@dallinbeutler
Copy link

To preface, I'm making a UI that can take any record (or class if I can) and create a form of dials and input boxes for each property that can be tweaked. making those tweaks results in a new copy of the record with the changes from the UI.
'state->'state

My guess is that I implement a [<custompickler>] and override the clone function for every type I want editable. The problem with this method is that the clone method doesn't have access to the tag to make a display label for what is being edited.

Is there an easier way?

Sorry if this is a dumb question, still trying to wrap my head around the library/concept

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

No branches or pull requests

1 participant