ndmitchell/hlint
Auf GitHub ansehenIncorrect redundant bracket warning with OverloadedRecordDot
Open
#1.458 geöffnet am 13. Feb. 2023
buggood first issue
Repository-Metriken
- Stars
- (1.594 Stars)
- 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.