-
Notifications
You must be signed in to change notification settings - Fork 34
Rewrite rule breaks code when used with ghc -O #58
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
BTW, if I use |
@liyang This creates a difference at runtime based on the level of optimization used with GHC - it's not caught during typechecking or anything, so I'm bumping this... (I worked around it by figuring out how to get rid of the |
Bumping this again... |
And again. |
Yearly bump, but guessing this package just isn't maintained at this point. |
Hm, missed last year. Yearly bump 2x. |
The package is now collectively maintained. I wonder if this is the cause of the test failures in It seems that cabal-install is passing |
I have the following code:
ghc --make -O0
, I get150s
ghc --make -O
, I get0s
At first I thought it was a bug in GHC's optimizer, but then I saw the rewrite rules in Thyme and now I'm not sure where to file the bug, so I'm starting here. I'm able to reproduce this on GHC 8.0.1, 8.0.2, and 7.10.3.
Let me know if you need any more information, I'm happy to provide it or help test a fix.
The text was updated successfully, but these errors were encountered: