ndmitchell/hlint

bad suggestion for "redundant section"

開放

#1,257 建立於 2021年6月8日

 (1 則留言) (0 個反應) (0 位負責人)Haskell (208 個分叉)batch import
good first issue

倉庫指標

星標
 (1,602 顆星)
PR 合併指標
 (30 天內沒有已合併 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

貢獻者指南