Skip to content

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.

2 participants