Skip to content

Action to export pattern (:+) produces malformed export list #4379

Closed
@Bodigrim

Description

@Bodigrim

Your environment

Which OS do you use? macOS
Which version of GHC do you use and how did you install it? 9.6.5, from ghcup

Which LSP client (editor/plugin) do you use? Sublime Text
Which version of HLS do you use and how did you install it? 2.9.0.1, from ghcup.

Steps to reproduce

Put

{-# LANGUAGE PatternSynonyms #-}
module Lib () where 
pattern x :+ y = (x, y)

and run code action "Export :+"

Expected behaviour

pattern (:+) is to be added to the export list.

Actual behaviour

pattern :+ is added to the export list, which is a parse error.

Metadata

Metadata

Assignees

Labels

HackathonThis issue is suitable for hackathon sessionscomponent: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions