Skip to content

Include location of ambiguous meta variables in error messages#62

Merged
chrisdone merged 2 commits intomainfrom
cd/2024-12-04-location-of-metavars
Dec 4, 2024
Merged

Include location of ambiguous meta variables in error messages#62
chrisdone merged 2 commits intomainfrom
cd/2024-12-04-location-of-metavars

Conversation

@chrisdone
Copy link
Copy Markdown
Owner

The following example now prints the error message below it:

main = do
 let f = \x -> Eq.eq x x
 Text.putStrLn "OK"
*** Exception: Zonk error: Ambiguous meta variable: t2
arising from examples/zonk-error.hell:2:10

So you can actually find where a meta variable came from. Usually an unused variable.

@chrisdone chrisdone merged commit 760e21d into main Dec 4, 2024
@chrisdone chrisdone deleted the cd/2024-12-04-location-of-metavars branch December 4, 2024 20:55
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