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

Better errors for missing HasDatatypeInfo #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AriFordsham
Copy link
Contributor

I was completely baffled by the type error when trying to apply RecordTypeOf to a type with no instance of HasDatatypeOf.

I fixed it based on https://blog.csongor.co.uk/report-stuck-families/ and
https://hackage.haskell.org/package/type-errors-0.2.0.0.

Maybe this should be fixed in Generics.SOP nearer HasDatatypeInfo?

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.

1 participant