ndmitchell/hlint

bad suggestion for "redundant section"

オープン

#1,257 opened on 2021/06/08

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Haskell (208 件のフォーク)batch import
good first issue

Repository metrics

Stars
 (1,602 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

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