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.

貢獻者指南