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

Function parameter type hints #51

Closed
1 task done
zjhmale opened this issue Mar 29, 2017 · 0 comments
Closed
1 task done

Function parameter type hints #51

zjhmale opened this issue Mar 29, 2017 · 0 comments
Assignees

Comments

@zjhmale
Copy link
Owner

zjhmale commented Mar 29, 2017

https://code.visualstudio.com/docs/extensionAPI/vscode-api#SignatureHelpProvider

Since Haskell-like syntax does not have parenthesis and commas for functions, things may get tricky here. If use some backtracking to find the nearest function definition, a big overhead of trying to get type information of each identifier in the backtracking path stands there. This feature seems to be impossible to be implemented at present. On a second thought, if we can backtracking to find the nearest function and to match the number of arguments can still finish the job.

And the case to support signature hint for function call inside parenthesis e.g. (fun arg...) is much more straightforward.

- [ ] signature hint for open function calls There is partial evaluation stands there, e.g., map ƒ ... so it will be crazy complicate and hard to give a 100% promise of precise, support for close functions is best we can do here for parameter type hints.

  • signature hint for close function calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant