Several improvements to the handling of coercions
* Make `mkSymCo` and `mkInstCo` smarter Fixes #23642 * Fix return role of `SelCo` in the coercion optimiser. Fixes #23617 * Make the coercion optimiser `opt_trans_rule` work better for newtypes Fixes #23619
Showing
- compiler/GHC/Core/Coercion.hs 88 additions, 46 deletionscompiler/GHC/Core/Coercion.hs
- compiler/GHC/Core/Coercion/Opt.hs 117 additions, 98 deletionscompiler/GHC/Core/Coercion/Opt.hs
- compiler/GHC/Core/TyCo/Rep.hs 14 additions, 8 deletionscompiler/GHC/Core/TyCo/Rep.hs
- compiler/GHC/Core/Utils.hs 16 additions, 29 deletionscompiler/GHC/Core/Utils.hs
- compiler/GHC/Iface/Type.hs 2 additions, 2 deletionscompiler/GHC/Iface/Type.hs
- compiler/GHC/Tc/Solver/Equality.hs 30 additions, 34 deletionscompiler/GHC/Tc/Solver/Equality.hs
Loading
Please register or sign in to comment