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

This commit fixes issues #138 and #139, which were caused by missing #147

Merged
merged 1 commit into from
Apr 27, 2015
Merged

This commit fixes issues #138 and #139, which were caused by missing #147

merged 1 commit into from
Apr 27, 2015

Conversation

EliasC
Copy link
Contributor

@EliasC EliasC commented Apr 27, 2015

cases in the utility functions for AST. This commit also makes GHC
produce an error if a new AST node is added without the proper cases in
Util.hs, preventing these kinds of mistakes again. To make this work
there can be no "catch all" cases in the functions getChildren and
putChildren. This inconvenience is outweighed by the fact that we are
guaranteed to never forget adding a case for our new AST nodes.

I borrowed the test case from @kikofernandez earlier pull request (that I rejected).

cases in the utility functions for AST. This commit also makes GHC
produce an error if a new AST node is added without the proper cases in
Util.hs, preventing these kinds of mistakes again. To make this work
there can be no "catch all" cases in the functions getChildren and
putChildren. This inconvenience is outweighed by the fact that we are
guaranteed to never forget adding a case for our new AST nodes.

I borrowed the test case from @kikofernandez earlier pull request (that I rejected).
kikofernandez pushed a commit that referenced this pull request Apr 27, 2015
This commit fixes issues #138 and #139, which were caused by missing
@kikofernandez kikofernandez merged commit 3b867f6 into parapluu:master Apr 27, 2015
@kikofernandez kikofernandez deleted the exhaustive-util branch April 27, 2015 14: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.

2 participants