Apoorv Ingle pushed to branch wip/ani/kill-popErrCtxt at Glasgow Haskell Compiler / GHC Commits: f782a81c by Apoorv Ingle at 2025-10-27T12:10:33-05:00 match context with record updates dont get added in error context - - - - - 1 changed file: - compiler/GHC/Tc/Gen/Match.hs Changes: ===================================== compiler/GHC/Tc/Gen/Match.hs ===================================== @@ -331,6 +331,7 @@ tcMatch tc_body pat_tys rhs_ty match add_match_ctxt thing_inside = case ctxt of LamAlt LamSingle -> thing_inside StmtCtxt (HsDoStmt{}) -> thing_inside -- this is an expanded do stmt + RecUpd -> thing_inside -- record update is Expanded out so ignore it _ -> addErrCtxt (MatchInCtxt match) thing_inside ------------- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f782a81c376019de8a50b0e10d310bce... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f782a81c376019de8a50b0e10d310bce... You're receiving this email because of your account on gitlab.haskell.org.