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

Print the terms when there's a type mismatch #300

Closed
langston-barrett opened this issue Aug 21, 2018 · 2 comments
Closed

Print the terms when there's a type mismatch #300

langston-barrett opened this issue Aug 21, 2018 · 2 comments
Labels
better-in-python Will be fixed by switching to python frontend topics: error-messages Issues involving the messages SAW produces on error wontfix Closed issues that we decided not to fix, but are still potentially relevant

Comments

@langston-barrett
Copy link
Contributor

Both Elm and GHC compilers print the problematic terms when there is a type mismatch. This will require passing more information to unify, perhaps a new DebugInformation type rather than just an LName.

In the long term, I think Elm's compiler really shines in this sort of thing, and would be great to emulate:

@atomb atomb modified the milestone: 0.3 Aug 29, 2018
@langston-barrett langston-barrett added the topics: error-messages Issues involving the messages SAW produces on error label Jan 3, 2019
@atomb atomb added this to the 1.0 milestone Jun 4, 2019
@atomb atomb modified the milestones: 0.5, 0.6 Apr 27, 2020
@atomb atomb modified the milestones: 0.6, 0.7 Aug 13, 2020
@atomb atomb added the better-in-python Will be fixed by switching to python frontend label Oct 16, 2020
@atomb atomb removed this from the 0.7 milestone Oct 16, 2020
@brianhuffman
Copy link
Contributor

We probably won't put much effort into improving error messages for the saw-script type checker, given that we plan to move over to the python interface.

@atomb atomb added the wontfix Closed issues that we decided not to fix, but are still potentially relevant label Oct 8, 2021
@atomb
Copy link
Contributor

atomb commented Oct 8, 2021

Given @brianhuffman's comment above, I'm going to close this.

@atomb atomb closed this as completed Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
better-in-python Will be fixed by switching to python frontend topics: error-messages Issues involving the messages SAW produces on error wontfix Closed issues that we decided not to fix, but are still potentially relevant
Projects
None yet
Development

No branches or pull requests

3 participants