-
Notifications
You must be signed in to change notification settings - Fork 563
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
Type synonym impossible to fully apply in type application #4531
Labels
Comments
Interestingly, this works: z :: Proxy (F (() :: Row Type))
z = Proxy @(() :: Row Type) Definitely a bug somewhere. |
-- `i` will be determined when `x` is concrete
type F :: forall i . Row i -> Row i
type F x = ()
type Z :: forall i . Row i -> Row i
type Z x = ()
-- fails:
-- Type synonym Main.Z is partially applied.
-- Type synonyms must be applied to all of their type arguments.
z :: Proxy (F (() :: Row Type))
z = Proxy @(Z (() :: Row Type)) Since the failure is in the type-application, my guess is that there is a kind-checker elaboration rule missing for type applications. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Possible kind inference funkiness going on with synonyms in type applications.
Using the same type expression in an annotation vs a type application works differently.
To Reproduce
try purescript
Expected behavior
z
would also pass type checking.PureScript version
0.15.13
The text was updated successfully, but these errors were encountered: