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 primitive equality using K Bools #10

Open
ayberkt opened this issue Jun 19, 2017 · 2 comments
Open

Add primitive equality using K Bools #10

ayberkt opened this issue Jun 19, 2017 · 2 comments

Comments

@ayberkt
Copy link
Collaborator

ayberkt commented Jun 19, 2017

It might be a while until we implement a neat solution for equality that captures precisely what's going on in Haskell. Until then, let's implement a primitive equality using the built-in K things so that we can start executing more interesting programs.

@ayberkt
Copy link
Collaborator Author

ayberkt commented Jun 19, 2017

@lucaspena I started working on equality using ==K as we discussed on Friday. Any chance you can take a look at 9587285 (if you have time)? For some reason, I couldn't communicate to K that True in name(True) is an HsId. There probably is an easy fix though.

@lucaspena
Copy link
Collaborator

lucaspena commented Jun 19, 2017

Hm, I'm not too sure the cause of the issue, but I pushed up at least a temporary fix. Basically my guess is it has to do with some behavior not playing nice with the regular expression for HsId, so I just added explicit syntax for True and False. I didn't spend too much time trying to debug it though, so like you said there may be a much easier fix. We can talk about it more tomorrow, but this should suffice for now.

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

2 participants