unexpected GADT kind error
I am surprised that the following two declarations are treated differently in HEAD (7.5.20120607):
{-# LANGUAGE GADTs, KindSignatures #-}
-- ok
data X f ix where
X :: f ix -> X f ix
-- not ok
data Y f :: * -> * where
Y :: f ix -> Y f ix
The second version causes an error:
/home/andres/trans/BugTest.hs:7:18:
Expecting one more argument to `f'
In the type `Y f ix'
In the definition of data constructor `Y'
In the data declaration for `Y'
I'd expect both to work.
Trac metadata
Trac field | Value |
---|---|
Version | 7.5 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |