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

Generic and Data instances for Value #49

Open
mniip opened this issue Aug 24, 2023 · 0 comments
Open

Generic and Data instances for Value #49

mniip opened this issue Aug 24, 2023 · 0 comments

Comments

@mniip
Copy link

mniip commented Aug 24, 2023

Would be pretty useful for writing custom PreProc functions. These enable you to do generic tree traversals a-la gplate or uniplate.

Or even more simply, make use of any other typeclasses that have generic deriving. For example, I have a PreProc function that omits some elements in particularly long lists, and instead inserts a hash of the omitted contents. To have Hashable Value would require either an orphan or an additional dependency for pretty-show. If I had Generic I could at least use GHashable (Rep Value).

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