You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When functions are desugared pattern matches are turned into case expressions, and right now I believe it assumes there to be more than one pattern. Should be fairly simple (famous last words) to make it recognise that if there is only one pattern and that pattern is a variable, no case is needed.
Here is an example program:
This currently gets desugared to:
This can be further simplified to:
The text was updated successfully, but these errors were encountered: