ndmitchell/hlint

Incorrect redundant bracket warning with OverloadedRecordDot

开放

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

 (2 条评论) (0 个反应) (0 位负责人)Haskell (208 个派生)batch import
buggood first issue

仓库指标

星标
 (1,602 个星标)
PR 合并指标
 (30 天内没有已合并 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.

贡献者指南