Apoorv Ingle pushed to branch wip/ani/better-expansion at Glasgow Haskell Compiler / GHC Commits: 8a17133d by Apoorv Ingle at 2026-03-31T14:08:09-05:00 wrap op apps with generated source span to avoid duplicate error messages - - - - - 1 changed file: - compiler/GHC/Tc/Gen/Expr.hs Changes: ===================================== compiler/GHC/Tc/Gen/Expr.hs ===================================== @@ -848,7 +848,7 @@ tcHsExpansion (HSE { hse_ctxt = o, hse_exp = e }) res_ty tcExpand :: HsExpr GhcRn -> TcM (Maybe (HsExpansion GhcRn)) tcExpand e@(OpApp _ arg1 op arg2) = return (Just (HSE { hse_ctxt = ExprCtxt e - , hse_exp = mkHsApps op [arg1,arg2] })) + , hse_exp = wrapGenSpan (unLoc $ mkHsApps op [arg1,arg2]) })) tcExpand (XExpr (ExpandedThingRn hse)) = return (Just hse) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8a17133dcb55651e8be3e3634bf4d3b6... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/8a17133dcb55651e8be3e3634bf4d3b6... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Apoorv Ingle (@ani)