summaryrefslogtreecommitdiff
path: root/compiler/main/DynamicLoading.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-11-07 14:31:15 -0500
committerBen Gamari <ben@smart-cactus.org>2019-11-10 17:22:52 -0500
commit86bb6b04f71652213c89fb9b13539baf3f1d57fb (patch)
treec11699cb392f1dcc4c86d764fe534665a3bfc010 /compiler/main/DynamicLoading.hs
parent55ca10855713f3cc14b17f1b67f14c36dea4c651 (diff)
downloadhaskell-wip/T17441.tar.gz
Ensure that coreView/tcView are able to inlinewip/T17441
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
Diffstat (limited to 'compiler/main/DynamicLoading.hs')
-rw-r--r--compiler/main/DynamicLoading.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main/DynamicLoading.hs b/compiler/main/DynamicLoading.hs
index c4d370cca0..265cef390b 100644
--- a/compiler/main/DynamicLoading.hs
+++ b/compiler/main/DynamicLoading.hs
@@ -39,7 +39,8 @@ import PrelNames ( pluginTyConName, frontendPluginTyConName )
import HscTypes
import GHCi.RemoteTypes ( HValue )
-import Type ( Type, eqType, mkTyConTy, pprTyThingCategory )
+import Type ( Type, eqType, mkTyConTy )
+import TyCoPpr ( pprTyThingCategory )
import TyCon ( TyCon )
import Name ( Name, nameModule_maybe )
import Id ( idType )