Ensure that coreView/tcView are able to inline
Previously an import cycle between Type and TyCoRep meant that several functions in TyCoRep ended up SOURCE import coreView. This is quite unfortunate as coreView is intended to be fused into a larger pattern match and not incur an extra call. Fix this with a bit of restructuring: * Move the functions in `TyCoRep` which depend upon things in `Type` into `Type` * Fold contents of `Kind` into `Type` and turn `Kind` into a simple wrapper re-exporting kind-ish things from `Type` * Clean up the redundant imports that popped up as a result Closes #17441. Metric Decrease: T4334
Showing
- compiler/GHC/Hs/Lit.hs 2 additions, 1 deletioncompiler/GHC/Hs/Lit.hs
- compiler/basicTypes/PatSyn.hs 1 addition, 0 deletionscompiler/basicTypes/PatSyn.hs
- compiler/coreSyn/CoreLint.hs 1 addition, 1 deletioncompiler/coreSyn/CoreLint.hs
- compiler/coreSyn/PprCore.hs 1 addition, 1 deletioncompiler/coreSyn/PprCore.hs
- compiler/deSugar/DsExpr.hs 1 addition, 0 deletionscompiler/deSugar/DsExpr.hs
- compiler/ghc.cabal.in 0 additions, 1 deletioncompiler/ghc.cabal.in
- compiler/ghci/ByteCodeGen.hs 1 addition, 1 deletioncompiler/ghci/ByteCodeGen.hs
- compiler/iface/IfaceType.hs 2 additions, 2 deletionscompiler/iface/IfaceType.hs
- compiler/main/DynamicLoading.hs 2 additions, 1 deletioncompiler/main/DynamicLoading.hs
- compiler/main/GHC.hs 1 addition, 0 deletionscompiler/main/GHC.hs
- compiler/main/PprTyThing.hs 2 additions, 3 deletionscompiler/main/PprTyThing.hs
- compiler/parser/Parser.y 0 additions, 1 deletioncompiler/parser/Parser.y
- compiler/rename/RnNames.hs 1 addition, 0 deletionscompiler/rename/RnNames.hs
- compiler/simplCore/SimplUtils.hs 1 addition, 0 deletionscompiler/simplCore/SimplUtils.hs
- compiler/typecheck/Constraint.hs 1 addition, 0 deletionscompiler/typecheck/Constraint.hs
- compiler/typecheck/FamInst.hs 1 addition, 1 deletioncompiler/typecheck/FamInst.hs
- compiler/typecheck/FunDeps.hs 1 addition, 0 deletionscompiler/typecheck/FunDeps.hs
- compiler/typecheck/Inst.hs 1 addition, 0 deletionscompiler/typecheck/Inst.hs
- compiler/typecheck/TcDeriv.hs 1 addition, 0 deletionscompiler/typecheck/TcDeriv.hs
- compiler/typecheck/TcDerivInfer.hs 1 addition, 0 deletionscompiler/typecheck/TcDerivInfer.hs
Loading
Please register or sign in to comment