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

language server function generation #622

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

TimWhiting
Copy link
Collaborator

Generates functions for (==) cmp show and order2 from datatype definition. However, unlike #335 this does it from the language server code action rather than automatically. This allows for more flexibility in working with effects for now, and also allows for greater customization of show after generation, while handling most of the boilerplate. We could also add a generic empty template for "adding a method" which would just create a function of one parameter of that type that immediately matches on the datatype, using the correct names of the fields. This would save a lot of typing and make the language server even more useful, while keeping consistent methods using the right / full names of fields.

@TimWhiting TimWhiting force-pushed the eq_gen_language_server branch from 06db5ae to 0259b75 Compare December 21, 2024 00:23
@TimWhiting TimWhiting added this to the Small Release milestone Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant