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

Handle Multi-Line Functions #37

Closed
gibiansky opened this issue Nov 11, 2013 · 1 comment
Closed

Handle Multi-Line Functions #37

gibiansky opened this issue Nov 11, 2013 · 1 comment

Comments

@gibiansky
Copy link
Member

Currently, defining a function on multiple lines causes only the last definition to hold:

f 3 = 2
f 2 = 3

f 2 -- returns 3
f 3 -- errors out

This is the same thing that GHCi does. However, it should be possible to detect that consecutive statements are defining the same function and join them.

@gibiansky
Copy link
Member Author

Should now be handled properly, fixed in commit e02e5c2

The handling is rather sketchy and their may be edge cases that cause everything to break.

@gibiansky gibiansky changed the title Handle Multi-Line Functions Handle Multi-Line Functions Oct 21, 2014
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