ndmitchell/hlint
Incorrect redundant bracket warning with OverloadedRecordDot
Offen
#1.458 geöffnet am 13.02.2023
buggood first issue
Repository-Metriken
- Stars
- (1.602 Sterne)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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.