-
Notifications
You must be signed in to change notification settings - Fork 568
Allow forall in polymorphic instance heads #1120
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
Comments
@michaelficarra are you seriously opening issues during PureScript Conf? |
@Fresheyeball Maybe. It's inspiring! |
👍 |
Is requiring |
I find 👍 for the instance part, though, I do find the current behaviour a bit jarring. |
I agree with @hdgarrood in theory, but in practice, this change is massive for relatively little gain IMO. |
Also agreed with @hdgarrood. I still think this is an inconsistency worth fixing eventually. It's unfortunate that this got passed over for 0.7.0. |
One could at least allow explicit quantification syntax for a few versions. |
Ah, good idea. If both are allowed, the current syntax can be deprecated using our new warning system. |
Backlog? |
Yeah, I think so. |
I personally would still really like to see this. I find reading implicitly quantified instances difficult, and have even made silly typo mistakes due to this. |
I'd like to work on this feature, but am new to purescript. @natefaubion does #3824 affect this feature or the other way around? |
I'm guessing the changes would go somewhere in the CST parsing code. Is this correct? If not, could someone please point me in the right direction? |
This would indeed go somewhere in the CST parsing code; probably by adding new cases to |
I've added a new deprecated warning constructor to ParserWarningType called WarnDeprecatedInstHeadForallSyntax. What should the deprecation warning text to be? e.g. Implicit 'forall' in instance head is deprecated and will be removed in a future release. Add 'forall' keyword to instance head. Also, am I correct in assuming I should create a branch off of master and create the PR off of branch? Are there any other steps I've missed? |
I believe these are the only places where we don't require
forall
. Examples from the website:Proposed new requirement:
The text was updated successfully, but these errors were encountered: