Refactoring in preparation for lazy skolemisation
* Make HsMatchContext and HsStmtContext be parameterised over the
function name itself, rather than over the pass.
See [mc_fun field of FunRhs] in Language.Haskell.Syntax.Expr
- Replace types
HsMatchContext GhcPs --> HsMatchContextPs
HsMatchContext GhcRn --> HsMatchContextRn
HsMatchContext GhcTc --> HsMatchContextRn (sic! not Tc)
HsStmtContext GhcRn --> HsStmtContextRn
- Kill off convertHsMatchCtxt
* Split GHC.Tc.Type.BasicTypes.TcSigInfo so that TcCompleteSig (describing
a complete user-supplied signature) is its own data type.
- Split TcIdSigInfo(CompleteSig, PartialSig) into
TcCompleteSig(CSig)
TcPartialSig(PSig)
- Use TcCompleteSig in tcPolyCheck, CheckGen
- Rename types and data constructors:
TcIdSigInfo --> TcIdSig
TcPatSynInfo(TPSI) --> TcPatSynSig(PatSig)
- Shuffle around helper functions:
tcSigInfoName (moved to GHC.Tc.Types.BasicTypes)
completeSigPolyId_maybe (moved to GHC.Tc.Types.BasicTypes)
tcIdSigName (inlined and removed)
tcIdSigLoc (introduced)
- Rearrange the pattern match in chooseInferredQuantifiers
* Rename functions and types:
tcMatchesCase --> tcCaseMatches
tcMatchesFun --> tcFunBindMatches
tcMatchLambda --> tcLambdaMatches
tcPats --> tcMatchPats
matchActualFunTysRho --> matchActualFunTys
matchActualFunTySigma --> matchActualFunTy
* Add HasDebugCallStack constraints to:
mkBigCoreVarTupTy, mkBigCoreTupTy, boxTy,
mkPiTy, mkPiTys, splitAppTys, splitTyConAppNoView_maybe
* Use `penv` from the outer context in the inner loop of
GHC.Tc.Gen.Pat.tcMultiple
* Move tcMkVisFunTy, tcMkInvisFunTy, tcMkScaledFunTys down the file,
factor out and export tcMkScaledFunTy.
* Move isPatSigCtxt down the file.
* Formatting and comments
Co-authored-by:
Vladislav Zavialov <vlad.z.4096@gmail.com>
Showing
- compiler/GHC/Core/Make.hs 3 additions, 3 deletionscompiler/GHC/Core/Make.hs
- compiler/GHC/Core/TyCo/Rep.hs 28 additions, 27 deletionscompiler/GHC/Core/TyCo/Rep.hs
- compiler/GHC/Core/Type.hs 2 additions, 2 deletionscompiler/GHC/Core/Type.hs
- compiler/GHC/Hs/Expr.hs 26 additions, 28 deletionscompiler/GHC/Hs/Expr.hs
- compiler/GHC/Hs/Instances.hs 2 additions, 7 deletionscompiler/GHC/Hs/Instances.hs
- compiler/GHC/Hs/Utils.hs 9 additions, 7 deletionscompiler/GHC/Hs/Utils.hs
- compiler/GHC/HsToCore/Arrows.hs 1 addition, 1 deletioncompiler/GHC/HsToCore/Arrows.hs
- compiler/GHC/HsToCore/Errors/Ppr.hs 2 additions, 2 deletionscompiler/GHC/HsToCore/Errors/Ppr.hs
- compiler/GHC/HsToCore/Errors/Types.hs 4 additions, 4 deletionscompiler/GHC/HsToCore/Errors/Types.hs
- compiler/GHC/HsToCore/GuardedRHSs.hs 3 additions, 3 deletionscompiler/GHC/HsToCore/GuardedRHSs.hs
- compiler/GHC/HsToCore/Match.hs 5 additions, 5 deletionscompiler/GHC/HsToCore/Match.hs
- compiler/GHC/HsToCore/Match.hs-boot 5 additions, 4 deletionscompiler/GHC/HsToCore/Match.hs-boot
- compiler/GHC/HsToCore/Monad.hs 1 addition, 1 deletioncompiler/GHC/HsToCore/Monad.hs
- compiler/GHC/HsToCore/Pmc.hs 1 addition, 1 deletioncompiler/GHC/HsToCore/Pmc.hs
- compiler/GHC/HsToCore/Pmc/Utils.hs 5 additions, 5 deletionscompiler/GHC/HsToCore/Pmc/Utils.hs
- compiler/GHC/HsToCore/Utils.hs 2 additions, 2 deletionscompiler/GHC/HsToCore/Utils.hs
- compiler/GHC/Iface/Ext/Ast.hs 22 additions, 16 deletionscompiler/GHC/Iface/Ext/Ast.hs
- compiler/GHC/Parser/PostProcess.hs 2 additions, 2 deletionscompiler/GHC/Parser/PostProcess.hs
- compiler/GHC/Rename/Bind.hs 6 additions, 6 deletionscompiler/GHC/Rename/Bind.hs
- compiler/GHC/Rename/Env.hs 3 additions, 9 deletionscompiler/GHC/Rename/Env.hs
Loading
Please register or sign in to comment