ndmitchell/hlint

bad suggestion for "redundant section"

Open

#1,257 opened on 2021年6月8日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Haskell (1,594 stars) (208 forks)batch import
good first issue

説明

the following function has the suggestion included however following the hint results in it not compiling

weirdEq :: (Int, Int) -> (Int, Int) -> Bool
weirdEq (_, 1) (_, 1) = True
weirdEq a b = ((==) `on`) snd a b
Suggestion: Redundant section
Found:
  ((==) `on`) snd
Perhaps:
  (==) `on` snd

v3.3.1 windows and linux

コントリビューターガイド