GHC accepts invalid type declaration
The declaration
type Foo = [Int, String]
is accepted by GHC with no extensions enabled, while it is clearly invalid Haskell. I didn't think about it but I suspect it has to do with DataKinds stepping in when it shouldn't.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.4.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |