ndmitchell/hlint
Incorrect redundant bracket warning with OverloadedRecordDot
オープン
#1,458 opened on 2023/02/13
buggood first issue
Repository metrics
- Stars
- (1,602 個のスター)
- PR merge metrics
- (30d に merged PR はありません)
説明
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.