-
Notifications
You must be signed in to change notification settings - Fork 5
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
sqrt' can convert meters to seconds with ghc8 #22
Comments
compiling with
|
Hmm, this is surprising, thanks for the report. It looks like the constraint |
Thanks! |
It's also possible to leave off the |
Okay, I think I see what is going on here. Here's an explanation for posterity... The plugin is correctly reporting the constraint Here's my plan to work around this:
This isn't completely satisfactory. It might be possible to do better using the new custom type errors machinery, but I haven't had time to look at that yet. I suspect it would be a good idea to change GHC to always report insoluble constraints, even unusual ones arising from plugins. Otherwise this seems like a good source of subtle bugs. |
Thanks! |
Among other things
ghc-7.10.3 seems to be fine.
This code compiles with ghc-8.0.1:
The text was updated successfully, but these errors were encountered: