Skip to content
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

Closed
jdnavarro opened this issue Feb 12, 2014 · 5 comments
Closed

Parse error when using LambdaCase pragma #19

jdnavarro opened this issue Feb 12, 2014 · 5 comments

Comments

@jdnavarro
Copy link

It seems they are not supported yet by hlint, which is fine, but the the parse error makes hlint not to report any other suggestions for the file.

https://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html#lambda-case

@ndmitchell
Copy link
Owner

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.

@nh2
Copy link

nh2 commented May 7, 2014

This is now implemented in HSE.

@ndmitchell
Copy link
Owner

The latest version of HLint, in conjunction with haskell-src-exts 1.15.0.1 should now work. (Thanks @nh2 for spotting this bug)

@robstewart57
Copy link

@ndmitchell Would it be worth setting haskell-src-exts-1.15.0.1 as a minimum version dependency within hlint?

@ndmitchell
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants