summaryrefslogtreecommitdiff
path: root/compiler/GHC/Tc/Solver
diff options
context:
space:
mode:
authorRichard Eisenberg <rae@richarde.dev>2020-10-14 18:12:45 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-12-01 19:57:41 -0500
commit72a87fbc7a95c012be260d1a14374e2b06ed0a36 (patch)
tree5c8de20dd2ddfbef39324baacfe01cc30638e55f /compiler/GHC/Tc/Solver
parentb94a65afe1e270245cd5b9fe03d59b726dfba8c4 (diff)
downloadhaskell-72a87fbc7a95c012be260d1a14374e2b06ed0a36.tar.gz
Move core flattening algorithm to Core.Unify
This sets the stage for a later change, where this algorithm will be needed from GHC.Core.InstEnv. This commit also splits GHC.Core.Map into GHC.Core.Map.Type and GHC.Core.Map.Expr, in order to avoid module import cycles with GHC.Core.
Diffstat (limited to 'compiler/GHC/Tc/Solver')
-rw-r--r--compiler/GHC/Tc/Solver/Monad.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/GHC/Tc/Solver/Monad.hs b/compiler/GHC/Tc/Solver/Monad.hs
index 311eadc72e..64a80b2e94 100644
--- a/compiler/GHC/Tc/Solver/Monad.hs
+++ b/compiler/GHC/Tc/Solver/Monad.hs
@@ -178,7 +178,9 @@ import GHC.Types.Unique.DFM
import GHC.Core.TyCon.Env
import GHC.Data.Maybe
-import GHC.Core.Map
+import GHC.Core.Map.Type
+import GHC.Data.TrieMap
+
import Control.Monad
import GHC.Utils.Monad
import Data.IORef