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
Explain why to use :> instead of Cons #170
Comments
I guess As an aside, I have a little project underway to do run-length-encoded |
If that's the case it would be helpful to have " |
I'll update the documentation. What @ggreif said is correct, The reason is a bit silly/sad: While the clash compiler happily supports the constructor aspect of GADTs, it (currently) does not support the pattern matching aspect (see the end of chapter 4 of my thesis if you want to know why). So I added the pattern synonym ( Hopefully, if/when clash supports GADT patterns, the ( |
GADT support has recently landed in Clash (#465). We can now use |
The warning has been removed. We keep the pattern synonym for the reasons described in: #966 |
There is a warning to use :> instead of Cons. Could you also explain in the warning the reason for it?
The text was updated successfully, but these errors were encountered: