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 for unlifted types #155

Open
kozross opened this issue Jul 10, 2022 · 1 comment
Open

Generic for unlifted types #155

kozross opened this issue Jul 10, 2022 · 1 comment

Comments

@kozross
Copy link

kozross commented Jul 10, 2022

Currently, you cannot derive Generic for an unlifted type, specifically one defined using the new UnliftedDatatypes extension. Would it be possible to lift this restriction?

@kosmikus
Copy link
Member

I don't know. In general, Generic is currently limited to types of kind Type / *. Generalising this a bit is in principle possible, and I've primarily never had the time to merge these generalisations.

However, for unlifted types, a different sort of generalisation is needed. I guess conceptually we would need unlifted versions of NS and NP to represent these. I'm currently not sure whether all this is worth it.

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

2 participants