Only promote *non-existential* data constructors
I don't konw how this was left out before; Trac #7347. In fixing this I did the usual round of refactoring. In particular, I cached the fact that a DataCon can be promoted in the DataCon itself (the dcPromoted field).
Showing
- compiler/basicTypes/DataCon.lhs 36 additions, 33 deletionscompiler/basicTypes/DataCon.lhs
- compiler/iface/TcIface.lhs 2 additions, 2 deletionscompiler/iface/TcIface.lhs
- compiler/prelude/TysWiredIn.lhs 3 additions, 3 deletionscompiler/prelude/TysWiredIn.lhs
- compiler/types/TyCon.lhs 1 addition, 1 deletioncompiler/types/TyCon.lhs
Loading
Please register or sign in to comment