Skip to content

Convert to record syntax wrong for operator fields #4975

Description

@Jashweii

If a record constructor has a field named as an operator, "convert to traditional record syntax" inserts the operator unparenthesised. If a record constructor is itself an operator, there is no suggestion (but this seems very unlikely).

Image

Steps to reproduce

data Example a = Example { (><) :: a -> a -> a }
f a = Example a

Expected behaviour

Suggests

f a = Example { (><) = a }

Actual behaviour

Suggests

f a = Example { >< = a }

Metadata

Metadata

Assignees

Labels

HackathonThis issue is suitable for hackathon sessionscomponent: hls-explicit-record-fields-pluginIssues related to the hls-explicit-record-fields-plugintype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions