Duplication between `CoreSubst` and `SimplEnv` is very unfortunate
There are lots of very similar functions in SimplEnv
and CoreSubst
.
For example, in SimpleEnv
there is a function substIdType
and likewise
in CoreSubst
but they are different to each other.
There is also a substIdBndr
function in both modules but the one in SimplEnv
calls SimpleEnv.substIdType
, the one in CoreSubst
doesn't call CoreSubst.substIdType
but has its own inlined version. This means there's at least three different versions of substIdType
floating around.
The correctness of this function is crucial so it would be better not to duplicate it.
Can we remove this duplication? Help me Simon!
Trac metadata
Trac field | Value |
---|---|
Version | 8.4.3 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |