Move defaulting code into a new module
GHC.Tc.Solver had reached 4,000 lines -- although quite a lot of them are comments. This MR * Adds the new module GHC.Tc.Solver.Default, which has all the complex, but well modularised, defaulting code * Moves a bit of code from GHC.Tc.Solver into the existing GHC.Tc.Solver.Solve. Notably solveWanteds and simplifyWantedsTcM, which are called from GHC.Tc.Solver.Default It's a pure refactor. No code changes.
Showing
- compiler/GHC/Tc/Deriv/Infer.hs 2 additions, 1 deletioncompiler/GHC/Tc/Deriv/Infer.hs
- compiler/GHC/Tc/Gen/Rule.hs 1 addition, 1 deletioncompiler/GHC/Tc/Gen/Rule.hs
- compiler/GHC/Tc/Solver.hs 9 additions, 1900 deletionscompiler/GHC/Tc/Solver.hs
- compiler/GHC/Tc/Solver/Default.hs 1035 additions, 0 deletionscompiler/GHC/Tc/Solver/Default.hs
- compiler/GHC/Tc/Solver/Solve.hs 827 additions, 8 deletionscompiler/GHC/Tc/Solver/Solve.hs
- compiler/GHC/Tc/Types/Constraint.hs 113 additions, 0 deletionscompiler/GHC/Tc/Types/Constraint.hs
- compiler/ghc.cabal.in 1 addition, 0 deletionscompiler/ghc.cabal.in
Loading
Please register or sign in to comment