Type constructor is accepted as context
Consider the following program:
f :: Int => () -> ()
f _ = id
It is accepted by the compiler, even though we are using a type constructor rather than a class assertion in a type context.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Type checker) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |