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

贡献者指南