Refactor the topNormaliseNewType story, fixing Trac #8467
A bit of a mess had accumulated, with unclear invariants. * Remove splitNewTypeRepCo_maybe, in favour of topNormaliseNewType_maybe (which had the same signature but behaved subtly differently). * Make topNormaliseNewType_maybe guaranteed to return a non-newtype if it says (Just ty). This is what was causing the loop in #8467 * Apply similar tidying up to FamInstEnv.topNormaliseType
Showing
- compiler/coreSyn/CoreArity.lhs 1 addition, 1 deletioncompiler/coreSyn/CoreArity.lhs
- compiler/deSugar/DsCCall.lhs 3 additions, 3 deletionscompiler/deSugar/DsCCall.lhs
- compiler/stranal/WwLib.lhs 54 additions, 56 deletionscompiler/stranal/WwLib.lhs
- compiler/types/Coercion.lhs 31 additions, 34 deletionscompiler/types/Coercion.lhs
- compiler/types/FamInstEnv.lhs 68 additions, 51 deletionscompiler/types/FamInstEnv.lhs
Please register or sign in to comment