Merge tc_infer_hs_type and tc_hs_type into one function using ExpType philosophy (#24299, #23639)
This patch implements refactoring which is a prerequisite to updating kind checking of type patterns. This is a huge simplification of the main worker that checks kind of HsType. It also fixes the issues caused by previous code duplication, e.g. that we didn't add module finalizers from splices in inference mode.
Showing
- compiler/GHC/Rename/Splice.hs 1 addition, 1 deletioncompiler/GHC/Rename/Splice.hs
- compiler/GHC/Tc/Gen/Bind.hs 1 addition, 1 deletioncompiler/GHC/Tc/Gen/Bind.hs
- compiler/GHC/Tc/Gen/HsType.hs 247 additions, 246 deletionscompiler/GHC/Tc/Gen/HsType.hs
- compiler/GHC/Tc/TyCl.hs 8 additions, 8 deletionscompiler/GHC/Tc/TyCl.hs
- compiler/GHC/Tc/Utils/TcType.hs 4 additions, 1 deletioncompiler/GHC/Tc/Utils/TcType.hs
- compiler/GHC/Tc/Utils/Unify.hs 2 additions, 0 deletionscompiler/GHC/Tc/Utils/Unify.hs
- compiler/Language/Haskell/Syntax/Type.hs 1 addition, 1 deletioncompiler/Language/Haskell/Syntax/Type.hs
- testsuite/tests/partial-sigs/should_run/GHCiWildcardKind.stdout 1 addition, 1 deletion...ite/tests/partial-sigs/should_run/GHCiWildcardKind.stdout
- testsuite/tests/th/T24299.hs 17 additions, 0 deletionstestsuite/tests/th/T24299.hs
- testsuite/tests/th/T24299.stderr 2 additions, 0 deletionstestsuite/tests/th/T24299.stderr
- testsuite/tests/th/all.T 1 addition, 0 deletionstestsuite/tests/th/all.T
Loading
Please register or sign in to comment