Class used as a type parameter typechecks
class SomeClass a
someValue :: Maybe (SomeClass a)
someValue = undefined
This code compiles without any errors.
The issue originates from this stackoverflow question.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |