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

“Show Type” for holes #40

Open
kerscher opened this issue Dec 2, 2015 · 1 comment
Open

“Show Type” for holes #40

kerscher opened this issue Dec 2, 2015 · 1 comment

Comments

@kerscher
Copy link
Contributor

kerscher commented Dec 2, 2015

Since one must have no type or kind errors to show types on expressions,
one recurring pattern I use is to temporarily enable PartialTypeSignatures on the file and then leave holes on the type signatures to let the IDE guide me.

Together with “Show Type” this enables me to quickly scan code on tricky sections.
A minor annoyance is that the type inferred for the hole is only available in the bottom of the screen:

kind-warning

A nice addition IMHO would be to allow “Show Type” on the hole itself, showing the inferred type in the same kind of popup used for other expressions. Is there interest in this? I could take a look on how to add it.

@kerscher
Copy link
Contributor Author

kerscher commented Dec 2, 2015

The example above is useless, but I guarantee it's useful in practice ;)

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

No branches or pull requests

1 participant