Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Bodigrim opened this issue Aug 10, 2024 · 0 comments
Open

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

Bodigrim opened this issue Aug 10, 2024 · 0 comments
Labels
component: ghcide Hackathon This issue is suitable for hackathon sessions type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@Bodigrim
Copy link
Contributor

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.

@Bodigrim Bodigrim added type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. status: needs triage labels Aug 10, 2024
@fendor fendor added the Hackathon This issue is suitable for hackathon sessions label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: ghcide Hackathon This issue is suitable for hackathon sessions type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

2 participants