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

Fix #364 #365

Merged
merged 1 commit into from
Apr 7, 2016
Merged

Fix #364 #365

merged 1 commit into from
Apr 7, 2016

Conversation

EliasC
Copy link
Contributor

@EliasC EliasC commented Apr 7, 2016

The monadic map over types did not properly recurse for the result type
of an arrow type (it called f result rather than typeMapM f result). This
caused the following program to not compile (added as test):

def fun() : (String, String) {
  ("Hello", "world")
}

class Main {
  def main() : void {
    let foo = fun : () -> (String, String);
    match foo() with
      (h, w) => print("{} {}\n", h, w)
  }
}

The monadic map over types did not properly recurse for the result type
of an arrow type (it called `f result` rather than `typeMapM f result`).
@supercooldave supercooldave merged commit b3bf67c into parapluu:development Apr 7, 2016
@EliasC EliasC deleted the fix/arrow-type-result-map branch December 21, 2016 10:47
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