ndmitchell/hlint

Incorrect redundant bracket warning with OverloadedRecordDot

Ouverte

#1 458 ouverte le 13 févr. 2023

 (2 commentaires) (0 réaction) (0 personne assignée)Haskell (208 forks)batch import
buggood 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

given

newtype T = T { f :: B }

g :: A -> T
a :: A

The code

(g a).f

uses the record dot operator. HLint recognizes this as the compose operator and incorrectly warns of a redundant bracket. Removing the bracket breaks the code, of course.

Guide contributeur