ndmitchell/hlint

Incorrect redundant bracket warning with OverloadedRecordDot

Aberta

#1.458 aberto em 13 de fev. de 2023

 (2 comentários) (0 reação) (0 responsável)Haskell (208 forks)batch import
buggood first issue

Métricas do repositório

Stars
 (1.602 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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.

Guia do colaborador