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 locations to equality constraints #43

Conversation

chrisdone
Copy link
Owner

@chrisdone chrisdone commented Oct 4, 2024

Pretty much means that error messages now include the line and column of where the type constraint came from.

It's not perfect because constraints can travel far, but after experimenting a bit, it seems to always point to the right line. I imagine exceptions to the rule are rarer.

*** Exception: Unification error: Couldn't match type

  (t100 t101)

against type

  (Text -> (IO ()))

arising from examples/19-blog-generator.hell:107:3

@chrisdone chrisdone merged commit 6c8cfc8 into main Oct 4, 2024
1 check passed
@chrisdone chrisdone deleted the cd/2024-10-04-keep-locations-of-equality-constraints-for-error-messages branch October 4, 2024 14:11
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.

1 participant