Skip to content

Derive data instances for exported types #89

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

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

SamProtas
Copy link
Contributor

I came across a situation in which I'd like to derive Data for my custom type that I'm using with optparse-generic. I found the helper types for annotating fields prevented me from doing so due to these missing Data instances.

I believe DeriveDataTypeable has been around since GHC 6.8.1, so adding these instances should not exclude any current users of the library, while providing this extra functionality.

https://downloads.haskell.org/~ghc/8.10.3/docs/html/users_guide/glasgow_exts.html#extension-DeriveDataTypeable

@Gabriella439 Gabriella439 merged commit fe01993 into Gabriella439:main Oct 19, 2021
@Gabriella439
Copy link
Owner

Great idea! Thank you 🙂

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

Successfully merging this pull request may close these issues.

2 participants