From 2d4f9ad89cb7e79c1f90983bf4898a5f4e3c7457 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 7 Nov 2019 14:31:15 -0500 Subject: Ensure that coreView/tcView are able to inline 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 --- compiler/parser/Parser.y | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler/parser') diff --git a/compiler/parser/Parser.y b/compiler/parser/Parser.y index af2bf8fba2..5fea8646a4 100644 --- a/compiler/parser/Parser.y +++ b/compiler/parser/Parser.y @@ -70,7 +70,6 @@ import BasicTypes -- compiler/types import Type ( funTyCon ) -import Kind ( Kind ) import Class ( FunDep ) -- compiler/parser -- cgit v1.2.1