ndmitchell/hlint

Incorrect redundant bracket warning with OverloadedRecordDot

Open

#1,458 创建于 2023年2月13日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)Haskell (1,594 star) (208 fork)batch import
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.

贡献者指南

Incorrect redundant bracket warning with OverloadedRecordDot · ndmitchell/hlint#1458 | Good First Issue