ndmitchell/hlint

bad suggestion for "redundant section"

Aberta

#1.257 aberto em 8 de jun. de 2021

 (1 comentário) (0 reação) (0 responsável)Haskell (208 forks)batch import
good first issue

Métricas do repositório

Stars
 (1.602 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador