Promotion of datatypes without -XDataKinds
The following code, without any extensions, compiles:
type Foo = False
It would seem necessary to enable -XDataKinds
, but GHC does not enforce this requirement. This was tested on 7.7.20121031.
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |