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

Automatic annotation of top-level type signatures #7042

Open
smores56 opened this issue Aug 30, 2024 · 0 comments
Open

Automatic annotation of top-level type signatures #7042

smores56 opened this issue Aug 30, 2024 · 0 comments
Labels

Comments

@smores56
Copy link
Sponsor Collaborator

We want to let users have Roc give their functions an inferred type signature. There are a few ways we want to provide this:

Our LSP should provide two new code actions:

  1. "Add signature" to this value, either at top level or within a function/block
  2. At the top of the file, "Add signatures to all top-level defs" with missing signatures

We also want our formatter to have a new subcommand annotate that will add signatures to all top-level defs in a file with missing signatures. e.g. roc format annotate <file.roc>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant