-
Notifications
You must be signed in to change notification settings - Fork 37
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
Support promoting symbolic types #163
Comments
Silly question: what exactly constitutes a "symbolic type"? And why weren't they usable before GHC 8? |
Something like GHC 7.x couldn't deal with symbolic kinds because it couldn't parse both them and |
Ah! Your original comment had me confused, since it implies this was new in GHC 8, but this feature has actually been around since GHC 7.6!
So I suppose my next question is: what does the comment in
|
Perhaps it's referring to this business?
|
Indeed, I suppose there's been an assumption that all infix datatype names have a colon at the beginning. This assumption is encoded into the naming conventions as well:
So if you give Perhaps the rule should actually be |
Since this is currently burning a hole in my skull, I think
Notice that the only case where we care about colons is the constructor case (since we have to put the There are two downsides to this proposal:
|
If it's really a simplification, go for it. A highly experimental library like singletons can get away with this kind of (actually, rather easy to fix) breakage. It is interesting that a As for drawback (2), that's not so bad, because the |
GHC 8 can, so we should too. But see the comment in
singInfixDecl
before proceeding too far, as I don't know how to handle that function if we can promote symbolic types.The text was updated successfully, but these errors were encountered: