ndmitchell/hlint
Vedi su GitHubIncorrect redundant bracket warning with OverloadedRecordDot
Open
#1458 aperta il 13 feb 2023
buggood first issue
Metriche repository
- Star
- (1594 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
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.