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

Add typed hole example to GHC-88464 #549

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

tomsmeding
Copy link
Contributor

GHC considers typed holes to be variables that are out of scope, but with special handling in the diagnostics. (Apparently.) So typed holes have the same error number as out-of-scope variables, even though they arise in (from the programmer's perspective) quite different situations.

This adds a simple example and some text explaining how typed holes can be useful.

Copy link
Collaborator

@BinderDavid BinderDavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic text again! Thank you very much.

@BinderDavid BinderDavid merged commit 9404c34 into haskellfoundation:main Nov 2, 2024
2 checks passed
@tomsmeding tomsmeding deleted the typed-holes branch November 2, 2024 08:14
@tomsmeding
Copy link
Contributor Author

Thanks for maintaining this project! The more of these random bits of wisdom it accumulates, the more useful it gets.

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.

2 participants