-
Notifications
You must be signed in to change notification settings - Fork 18
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
Helpful "not in scope before the splice" went missing in 9.0 #547
Comments
This has caused confusion in real life: https://discourse.haskell.org/t/does-template-haskell-move-things-out-of-the-scope/7549/15 |
Earlier discussion: https://gitlab.haskell.org/ghc/ghc/-/issues/17816#note_256167 |
Thanks @monoidal! (I realised I've posted this on the wrong issue tracker. I'll try to find the correct one...) |
Actually perhaps it is the correct one, per https://github.com/haskell/error-messages#the-haskell-message-index. I got confused between this one and https://github.com/haskellfoundation/error-message-index, but I think this is the correct one for general issues around error messages. |
Yes - |
Apparently it took "hundreds of lines of code" to support this error message! https://gitlab.haskell.org/ghc/ghc/-/issues/17816#note_256193 |
In the program below,
c
is not in scope wherea
is defined because of the intervening TH splice. The error message in 8.10 was helpfulIn 9.0 the error message became unhelpful
The text was updated successfully, but these errors were encountered: