-
Notifications
You must be signed in to change notification settings - Fork 195
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
QuasiQuotes with # at start of line fail to parse #1564
Comments
left to itself, hlint will default enable its own selection of language extensions. apparently one of the extensions it is default enabling causes this problem. we can override this. putting -XHaskell98 overcomes the parse error. update: i guess it's |
Excellent yes it does look like |
what's happening is that when
which is indeed an unterminated quasiquote. another workaround is to put a leading space before the
|
Thanks! I'm not sure if this ticket should be closed now. I guess the missing piece is that if another user runs into this, they'd have to search to find these workarounds. |
Take the following module:
This features a quasiqoute that runs over several lines.
And one of those lines starts with a
#
, which makes it look a bit like CPP but it isn't.HLint gives the following output:
Yet GHC correctly parses this. (Though the use of undefined then gives us an error later)
The text was updated successfully, but these errors were encountered: