summaryrefslogtreecommitdiff
path: root/compiler/simplCore/SimplUtils.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/simplCore/SimplUtils.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/simplCore/SimplUtils.hs')
-rw-r--r--compiler/simplCore/SimplUtils.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/simplCore/SimplUtils.hs b/compiler/simplCore/SimplUtils.hs
index eb57720d9e..5073bbff99 100644
--- a/compiler/simplCore/SimplUtils.hs
+++ b/compiler/simplCore/SimplUtils.hs
@@ -46,6 +46,7 @@ import DynFlags
import CoreSyn
import qualified CoreSubst
import PprCore
+import TyCoPpr ( pprParendType )
import CoreFVs
import CoreUtils
import CoreArity