-
Notifications
You must be signed in to change notification settings - Fork 2
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
[BUG] -XOverloadedRecordDot
doesn't handle properly
#28
Comments
A quick check: do you depend on |
|
Ah yeah, So, that's unfortunate 🤔 If you can recommend which library to use for parsing Haskell, that could also account for the currently enabled extensions (till now I obtained them from TH context), that would be a good starting point for the fix. |
I don't know such libraries. I'm scary that we would have to come with GHC proposal that will expose parsing API, because GHC seems to be the only way to parse GHC/Haskell and depending on the whole |
Yeeah |
Description
Attempt to use
-XOverloadedRecordDot
inside the interpolation would cause an error, becausefoo.bar
is parsed asfoo . bar
To Reproduce
This would cause an error:
If you try to remove
-XNoFieldSelectors
, then there would be an error about types mismatchExpected behavior
Successful compilation, like in
foo x = let f = x.field in [int|| X is #{f} |]
The text was updated successfully, but these errors were encountered: