-
Notifications
You must be signed in to change notification settings - Fork 3
Stack overflow in Prelude generic tests #32
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
Comments
Thank you for the report, I will look into it this week. |
@UnrelatedString I couldn't reproduce the problem - list equality works, check this PR out. |
Very strange... I repro'd on a CI runner fine just now. Looking at the Golden Test, it appears that it uses an eta-expanded definition ...I only now realized that just because the error message in the generated Lua points to the definition doesn't mean the definition itself causes the error 😭😭😭 Turns out, it's specifically testing that |
Incidentally, it seems that derived Functor instances may also be faulty? Trying to map over an Either errors trying to index a function. |
...and a long enough |
As the title says. I tried to get tests working for the Prelude, and I was mostly successful, with the caveat that the inclusion of the Generic tests causes a stack overflow in the definition of
eqList
. This seems more plausibly to be a bug with the backend's implementation ofderive instance Generic
than an issue with the Prelude itself.Specifically,
results in the offending definitions
(indents added for clarity.)
The text was updated successfully, but these errors were encountered: