-
Notifications
You must be signed in to change notification settings - Fork 659
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
infinite type causes compiler hang #1669
Comments
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
I'm having a similar issue when I try to use the API provided by Attempting to compile the following code in the Graphqelm Star Wars example on Ellie will hang/crash the compiler: query =
["1004", "1001"]
|> List.map (\id -> Query.human { id = Swapi.Scalar.Id id } human)
|> List.foldl with (Query.selection identity) EDIT: Now noticing that there are other issues on the tracker which may be more relevant to my issue. Not sure which one would be most correct though 🤷♂️ |
Workaround
to
It helped the compiler so much that there were no more out of memory issue trying to infer the type of a ill-written function (I found several bugs in my code afterwards) |
This bug was already posted in #1380, but that issue was closed in favor of #1231, which was also closed. The notes in this form instructs to visit #1240, but that issue is closed. So I'm posting this issue again. I should mention that I commented in those issues before posting this.
Compiling the following code crashes with out of memory error.
The text was updated successfully, but these errors were encountered: