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

Nicer error messages: unifyT should be Either #396

Open
amosr opened this issue May 16, 2016 · 0 comments
Open

Nicer error messages: unifyT should be Either #396

amosr opened this issue May 16, 2016 · 0 comments

Comments

@amosr
Copy link
Contributor

amosr commented May 16, 2016

At the moment unifyT for unifying source types returns a Maybe Subst.
It should return an Either Err Subst so we can differentiate errors.
There are at least two error types:

  • occurs check / recursive type
  • cannot unify
    but we might be able to split them up further.

https://github.com/ambiata/icicle/blob/d86f4846612fed788ace4fc02dc5748e3e6fe2b8/src/Icicle/Source/Type/Subst.hs#L156

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

No branches or pull requests

1 participant