Simon Peyton Jones pushed to branch wip/T27844 at Glasgow Haskell Compiler / GHC Commits: 4c11fb6d by Simon Peyton Jones at 2026-10-13T08:48:14+01:00 One line fix to fallout from ...#27731, !16564, simplifying Tc.Errors machinery There was an over-eager assert! - - - - - 1 changed file: - compiler/GHC/Tc/Errors.hs Changes: ===================================== compiler/GHC/Tc/Errors.hs ===================================== @@ -2106,10 +2106,11 @@ mkTyVarEqErr' ctxt item tv1 ty2 -- See Note [Error messages for untouchables] | (implic:_) <- cec_encl ctxt -- Get the innermost context , Implic { ic_tclvl = lvl } <- implic - = assertPpr (not (isTouchableMetaTyVar lvl tv1) || hasCoercionHole ty2) + = assertPpr (not (isTouchableMetaTyVar lvl tv1) || ei_suppress item) (ppr tv1 $$ ppr lvl) $ do -- See Note [Error messages for untouchables] -- We can still get touchable meta-tyvars on the LHS if there is an -- unsolved coercion hole, e.g. (alpha::Type) ~ Int# |> co_hole + -- Hence (ei_suppress item) tv_extra <- extraTyVarEqInfo (tv1, Just implic) ty2 let tv_extra' = tv_extra { thisTyVarIsUntouchable = Just implic } msg = Mismatch View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4c11fb6d179ca2013ae20f1cd5ee1978... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4c11fb6d179ca2013ae20f1cd5ee1978... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help