Skip to content

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