We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
match ... with ... expressions need to be type checked to ensure each resulting functional expression is of the same type expression.
match
with
See the following:
match e with f1 -> g1 | f2 -> g2 | f3 -> g3
In other words, g1, g2, and g3 must all be of equivalent type expressions. They do not have to be the same constructor.
g1
g2
g3
Update (06/15/2021): Should this be allowed to work when g1 through g3 are all constrained by the same typeclass, but not the same type?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
match
...with
... expressions need to be type checked to ensure each resulting functional expression is of the same type expression.See the following:
In other words,
g1
,g2
, andg3
must all be of equivalent type expressions. They do not have to be the same constructor.Update (06/15/2021): Should this be allowed to work when
g1
throughg3
are all constrained by the same typeclass, but not the same type?The text was updated successfully, but these errors were encountered: