Core lint fails with error "Role incompatibility: expected N, got R"
I'm seeing a core lint error, "Role incompatibility: expected N, got R", on 33327379. The attached program will reproduce the error when compiled as:
ghc -O2 -dcore-lint Role.hs
Note that -O2
is required for core lint to complain.
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 |