-
0fb37893
by Matthew Pickering at 2025-06-23T13:55:10-04:00
Move ModuleGraph into UnitEnv
The ModuleGraph is a piece of information associated with the
ExternalPackageState and HomeUnitGraph. Therefore we should store it
inside the HomeUnitEnv.
-
3bf6720e
by soulomoon at 2025-06-23T13:55:52-04:00
Remove hptAllFamInstances usage during upsweep
Fixes #26118
This change eliminates the use of hptAllFamInstances during the upsweep phase,
as it could access non-below modules from the home package table.
The following updates were made:
* Updated checkFamInstConsistency to accept an explicit ModuleEnv FamInstEnv
parameter and removed the call to hptAllFamInstances.
* Adjusted hugInstancesBelow so we can construct ModuleEnv FamInstEnv
from its result,
* hptAllFamInstances and allFamInstances functions are removed.
-
4cd6429d
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
- Remove one `SrcSpan` field from `VAExpansion`. It is no longer needed.
- Make `tcExpr` take a `Maybe HsThingRn` which will be passed on to tcApp and used by splitHsApps to determine a more accurate `AppCtx`
- `tcXExpr` is less hacky now
- do not look through HsExpansion applications
- kill OrigPat and remove HsThingRn From VAExpansion
- look through XExpr ExpandedThingRn while inferring type of head
- always set in generated code after stepping inside a ExpandedThingRn
- fixing record update error messages
- remove special case of tcbody from tcLambdaMatches
- wrap last stmt expansion in a HsPar so that the error messages are prettier
- remove special case of dsExpr for ExpandedThingTc
- make EExpand (HsExpr GhcRn) instead of EExpand HsThingRn
- fixing error messages for rebindable
-
fe55834b
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
some progress on tick
-
a258d0e7
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
remove adhoc cases from ticks
-
a620300b
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
fix the case where head of the application chain is an expanded expression and the argument is a type application c.f. T19167.hs
-
0eba8097
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
move setQLInstLevel inside tcInstFun
-
ab6d8ea9
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
ignore ds warnings originating from gen locations
-
bcfecf7e
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
filter expr stmts error msgs
-
2f877d2f
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
exception for AppDo while making error ctxt
-
d8e66ef2
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
moving around things for locations and error ctxts
-
001515a0
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
popErrCtxt doesn't push contexts and popErrCtxts in the first argument to bind and >> in do expansion statements
-
c3e320f3
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
accept test cases with changed error messages
-------------------------
Metric Decrease:
T9020
-------------------------
-
8a34d35f
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
look through PopErrCtxt while splitting exprs in application chains
-
6a3fd9ce
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
remove special case for HsExpanded in Ticks
-
d7b17d49
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
check the right origin for record selector incomplete warnings
-
d5895136
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
kill VAExpansion
-
84731698
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
pass CtOrigin to tcApp for instantiateSigma
-
9a7dcbca
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
do not suppress pprArising
-
8a6b5771
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
kill VACall
-
c538fa76
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
kill AppCtxt
-
82fbc450
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
remove addHeadCtxt
-
875ba420
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
fix pprArising for MonadFailErrors
-
4b6cdbc9
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
rename ctxt to sloc
-
aa53551b
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
fix RepPolyDoBind error message herald
-
a347731a
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
SrcCodeCtxt
more changes
-
ef425b46
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
make tcl_in_gen_code a SrcCodeCtxt and rename DoOrigin to DoStmtOrigin
-
72820354
by Apoorv Ingle at 2025-06-23T17:53:11-05:00
make error messages for records saner