summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Solver/Rewrite.hs
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2021-05-28 18:00:59 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-05-29 10:18:37 -0400
commit6db8a0f76ec45d47060e28bb303e9eef60bdb16b (patch)
tree40c95b50485a46237a71a664874d38015c75c5de /compiler/GHC/Tc/Solver/Rewrite.hs
parent0f8872ecac49b2e4075e64ac93269a4a78d69cff (diff)
downloadhaskell-6db8a0f76ec45d47060e28bb303e9eef60bdb16b.tar.gz
Rip GHC.Tc.Solver.Monad asunder (only)
This creates new modules GHC.Tc.Solver.InertSet and GHC.Tc.Solver.Types. The Monad module is still pretty big, but this is an improvement. Moreover, it means that GHC.HsToCore.Pmc.Solver.Types no longer depends on the constraint solver (it now depends on GHC.Tc.Solver.InertSet), making the error-messages work easier. This patch thus contributes to #18516.
Diffstat (limited to 'compiler/GHC/Tc/Solver/Rewrite.hs')
-rw-r--r--compiler/GHC/Tc/Solver/Rewrite.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Solver/Rewrite.hs b/compiler/GHC/Tc/Solver/Rewrite.hs
index 9c0d39ec46..13f6c4ce1b 100644
--- a/compiler/GHC/Tc/Solver/Rewrite.hs
+++ b/compiler/GHC/Tc/Solver/Rewrite.hs
@@ -28,6 +28,7 @@ import GHC.Utils.Outputable
import GHC.Utils.Panic
import GHC.Utils.Panic.Plain
import GHC.Tc.Solver.Monad as TcS
+import GHC.Tc.Solver.Types
import GHC.Utils.Misc
import GHC.Data.Maybe
@@ -333,7 +334,7 @@ it expands the synonym and proceeds; if not, it simply returns the
unexpanded synonym. See also Note [Rewriting synonyms].
Where do we actually perform rewriting within a type? See Note [Rewritable] in
-GHC.Tc.Solver.Monad.
+GHC.Tc.Solver.InertSet.
Note [rewrite_args performance]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~