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

Plugin for record-selector to record dot syntax #3350

Closed
santiweight opened this issue Nov 20, 2022 · 2 comments
Closed

Plugin for record-selector to record dot syntax #3350

santiweight opened this issue Nov 20, 2022 · 2 comments
Labels
level: easy The issue is suited for beginners type: enhancement New feature or request

Comments

@santiweight
Copy link
Collaborator

If the user's editor looks like this:

   bar = unFoo foo
             ^

We could provide a code action that produces:

   bar = foo.unFoo

We could also provide this functionality file-wide, either as a an action on the module or in the file explorer.

@michaelpj michaelpj added level: easy The issue is suited for beginners and removed status: needs triage labels Jan 5, 2023
@michaelpj
Copy link
Collaborator

I think this wouldn't be too hard: look for simple applications of functions which are record selectors, offer to rewrite them.

@joyfulmantis
Copy link
Collaborator

I would like to work on this.

joyfulmantis added a commit to joyfulmantis/haskell-language-server that referenced this issue Apr 14, 2023
joyfulmantis added a commit to joyfulmantis/haskell-language-server that referenced this issue Apr 14, 2023
@fendor fendor mentioned this issue Aug 8, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level: easy The issue is suited for beginners type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants