-
Notifications
You must be signed in to change notification settings - Fork 108
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
Enforce the constraints implied by the new type-parameter role system #1139
Comments
Specifically, quoting #1138 :
2 is blocked on having a |
I don't think this is important, but FYI I found a use for functions as type constructor parameters. Specifically, for defining Poisson processes:
I was surprised that this works, and I guess I was right to be, since it sounds like you're planning to disallow this? In any case, I wouldn't block anything to save this little piece of code. If you're curious, here's the entire example, that runs:
|
Oh, that's definitely allowed! In your example, the function is an argument to the data constructor, |
Thanks for explaining, I hadn't understood the distinction between 'type constructor' and 'data constructor'. |
See the description of #1138 for the two invariants.
The text was updated successfully, but these errors were encountered: