-
Notifications
You must be signed in to change notification settings - Fork 194
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
Parse error when using LambdaCase
pragma
#19
Comments
This is a bug in the underlying haskell-src-exts library, tracked here: haskell-suite/haskell-src-exts#33 Unfortunately once there is a single parse error nothing else works, as that is by design of haskell-src-exts. |
This is now implemented in HSE. |
The latest version of HLint, in conjunction with haskell-src-exts 1.15.0.1 should now work. (Thanks @nh2 for spotting this bug) |
@ndmitchell Would it be worth setting haskell-src-exts-1.15.0.1 as a minimum version dependency within hlint? |
@robstewart57 In the past I've very much supported HSE versions as far back as could be reasonably done without C pre processor. The main reason is that people might have other things on their system that require the older haskell-src-exts, and thus it's better for HLint to be a bit more accommodating. That said, it's a popular request, and while it now works, it's not at all obvious that you need to upgrade HSE to get it working in HLint. I'm on the fence, so welcome other opinions. |
It seems they are not supported yet by
hlint
, which is fine, but the the parse error makeshlint
not to report any other suggestions for the file.https://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#lambda-case
The text was updated successfully, but these errors were encountered: