Skip to content

'Avoid lambda' suggests unnecessary parens #1645

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

Closed
ysangkok opened this issue May 14, 2025 · 0 comments · Fixed by #1646
Closed

'Avoid lambda' suggests unnecessary parens #1645

ysangkok opened this issue May 14, 2025 · 0 comments · Fixed by #1646

Comments

@ysangkok
Copy link
Contributor

It seems a bug was introduced in #1634 .

This was tested on a build of hlint from the default branch, from just now.

Hlint output (should be 'no hints'):

A.hs:3:15-27: Suggestion: Avoid lambda
Found:
  \ _ -> pure ()
Perhaps:
  (\ _ -> pure ())

1 hint

Source:

{-# LANGUAGE BlockArguments #-}
main :: IO ()
main = ($ 42) \_ -> pure ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant