ndmitchell/hlint

bad suggestion for "redundant section"

Ouverte

#1 257 ouverte le 8 juin 2021

 (1 commentaire) (0 réaction) (0 personne assignée)Haskell (208 forks)batch import
good first issue

Métriques du dépôt

Stars
 (1 602 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur