ndmitchell/hlint
GitHub で見るIncorrect redundant bracket warning with OverloadedRecordDot
Open
#1,458 opened on 2023年2月13日
buggood first issue
説明
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.