-
Notifications
You must be signed in to change notification settings - Fork 94
Parse error with LANGUAGE pragma #217
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
This is the same as #228 The lexer injects a semi colon before |
I don't think it's the same problem. The lexer should insert a semicolon in this case but our parser doesn't expect to find a semicolon in the middle of a language pragma. GHC has something similar in the grammar for deprecations to this: > conids :: { ([Name L],[S]) }
> : conids ',' conid { (fst $1 ++ [$3], snd $1 ++ [$2]) }
> | optsemis conid { ([$2],[]) } |
Fixed with 52d1967. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given:
This works in GHC, but raises a parse error in HSE. Note that
#-}
line is indented by one space - that's important or it's a parse error in GHC too. Originally from ndmitchell/hlint#125The text was updated successfully, but these errors were encountered: