-
Notifications
You must be signed in to change notification settings - Fork 50
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
GHC panic when compiling examples #19
Comments
Oops! I've been experimenting with some new rewrite rules. I see that even the most basic examples are failing before the CCC plugin even gets started. Investigating. Thanks for the report. |
I had a few changes not yet pushed. Seems to be working again. Try again? |
Thanks for looking into it! It's still not quite working for me, I get a different error: To make sure everything is rebuilt, I deleted the .stack-work directory and the global snapshots directory. Let me know if there's anything else that could be left behind. |
Wow. I've never seen anything like that error. Have you? I don't know whether anyone else has tried using concat on Windows. |
I've never seen anything like it, but I also have never used a compiler plugin before. Maybe it's an issue with the Windows version of GHC. |
There seem to be other reports of this issue, e.g., here. |
Since they also use GHC 8.0, I tried to change the stackage resolver to nightly-2017-10-31 and see if it works better with GHC 8.2, but BuildDictionary.hs doesn't compile. I guess it's too early to update the code as there's no stackage LTS with GHC 8.2 yet. |
Now that stackage lts-10.0 is out with GHC 8.2, I updated the resolver and tried to build again. This time I get a different panic:
|
Thanks. I'm seeing the same error with lts-10.0. The issue seems to be a small change in GHC's treatment of single-method classes ( It will take some time to sort through these changes, and I've been meaning to overhaul this part of the plugin anyway. |
I ran "stack build :misc-examples" and got:
Preprocessing test suite 'misc-examples' for concat-examples-0.3.0.0...
[1 of 1] Compiling Main ( test\Examples.hs, .stack-work\dist\ca59d0ab\build\misc-examples\misc-examples-tmp\Main.o )
ghc.EXE: panic! (the 'impossible' happened)
(GHC version 8.0.2 for x86_64-unknown-mingw32):
Simplifier ticks exhausted
When trying RuleFired cat equal
To increase the limit, use -fsimpl-tick-factor=N (default 100)
If you need to do this, let GHC HQ know, and what factor you needed
To see detailed counts use -ddump-simpl-stats
Total ticks: 51001
Not sure if it's an actual GHC bug, or something to do with the plugin?
The text was updated successfully, but these errors were encountered: