summaryrefslogtreecommitdiff
path: root/ghc/compiler/utils/UniqFM.lhs
diff options
context:
space:
mode:
authorsimonpj <unknown>2004-08-16 09:54:51 +0000
committersimonpj <unknown>2004-08-16 09:54:51 +0000
commit4e3255388e8b99ccdae290bfcb6cd666b8c93d4a (patch)
treea529ae3bfdeecbb6ecd55910be06c7990c922892 /ghc/compiler/utils/UniqFM.lhs
parentd32c5227315009f38355fe3233f0f4e5b1f61dc6 (diff)
downloadhaskell-4e3255388e8b99ccdae290bfcb6cd666b8c93d4a.tar.gz
[project @ 2004-08-16 09:53:47 by simonpj]
------------------------------- Add instance information to :i Get rid of the DeclPool ------------------------------- 1. Add instance information to :info command. GHCi now prints out which instances a type or class belongs to, when you use :i 2. Tidy up printing of unqualified names in user output. Previously Outputable.PrintUnqualified was type PrintUnqualified = Name -> Bool but it's now type PrintUnqualified = ModuleName -> OccName -> Bool This turns out to be tidier even for Names, and it's now also usable when printing IfaceSyn stuff in GHCi, eliminating a grevious hack. 3. On the way to doing this, Simon M had the great idea that we could get rid of the DeclPool holding pen, which held declarations read from interface files but not yet type-checked. We do this by eagerly populating the TypeEnv with thunks what, when poked, do the type checking. This is just a logical continuation of lazy import mechanism we've now had for some while. The InstPool and RulePool still exist, but I plan to get rid of them in the same way. The new scheme does mean that more rules get sucked in than before, because previously the TypeEnv was used to mean "this thing was needed" and hence to control which rules were sucked in. But now the TypeEnv is populated more eagerly => more rules get sucked in. However this problem will go away when I get rid of the Inst and Rule pools. I should have kept these changes separate, but I didn't. Change (1) affects mainly TcRnDriver, HscMain, CompMan, InteractiveUI whereas change (3) is more wide ranging.
Diffstat (limited to 'ghc/compiler/utils/UniqFM.lhs')
-rw-r--r--ghc/compiler/utils/UniqFM.lhs2
1 files changed, 0 insertions, 2 deletions
diff --git a/ghc/compiler/utils/UniqFM.lhs b/ghc/compiler/utils/UniqFM.lhs
index 18efa0e4c5..2d244259f5 100644
--- a/ghc/compiler/utils/UniqFM.lhs
+++ b/ghc/compiler/utils/UniqFM.lhs
@@ -46,8 +46,6 @@ module UniqFM (
#include "HsVersions.h"
-import {-# SOURCE #-} Name ( Name )
-
import Unique ( Uniquable(..), Unique, getKey#, mkUniqueGrimily )
import Panic
import FastTypes