-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix #292: adding tuple in hasSameKind
function in Type.hs
#296
Conversation
I think it's better to add a test case to avoid regression. |
I agree with you. Here is the test case:
I previously fixed the issue by inserting However, before committing to the
@EliasC : do you know why? |
@vhphuc: If you move code around in a function, you should generally expect different results! What we want is to say in this particular function is "if both types are tuples, return Also: Don't forget to add your test case to the test suite! You will probably want to add a |
@EliasC: You are right. I found that there is no field |
I have two issues with the test case:
After fixing this, I think this could be merged! |
For some functions, it is necessary to maintain arguments in case they can passed and returned. With unnecessary arguments in other functions, I omitted already. Ready to commit. |
Does this mean that you will be pushing additional material to this PR? |
Not really push additional material, but I fix the two aforementioned issues. |
Personally, I would change some more functions according to my latest comment, but I think this is ready to be merged. Will merge later if no one objects. |
Fix #292: adding tuple in `hasSameKind` function in `Type.hs`
This change fixes the issue #292.