summaryrefslogtreecommitdiff
path: root/compiler/GHC/Driver/Env/Types.hs
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-02-04 22:38:57 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-26 19:00:07 -0400
commit872a9444df4d38cd5dc0fbb7a249d89596e73ea2 (patch)
tree01a1ba920dfc7c5470bc2743e3bbc92413e4dd97 /compiler/GHC/Driver/Env/Types.hs
parentd930fecb6d241c1eb13c30cf1126132766ff602e (diff)
downloadhaskell-872a9444df4d38cd5dc0fbb7a249d89596e73ea2.tar.gz
Refactor NameCache
* Make NameCache the mutable one and replace NameCacheUpdater with it * Remove NameCache related code duplicated into haddock Bump haddock submodule
Diffstat (limited to 'compiler/GHC/Driver/Env/Types.hs')
-rw-r--r--compiler/GHC/Driver/Env/Types.hs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/GHC/Driver/Env/Types.hs b/compiler/GHC/Driver/Env/Types.hs
index 94ba48c019..4465d206dd 100644
--- a/compiler/GHC/Driver/Env/Types.hs
+++ b/compiler/GHC/Driver/Env/Types.hs
@@ -102,10 +102,9 @@ data HscEnv
-- This is mutable because packages will be demand-loaded during
-- a compilation run as required.
- hsc_NC :: {-# UNPACK #-} !(IORef NameCache),
- -- ^ As with 'hsc_EPS', this is side-effected by compiling to
- -- reflect sucking in interface files. They cache the state of
- -- external interface files, in effect.
+ hsc_NC :: {-# UNPACK #-} !NameCache,
+ -- ^ Global Name cache so that each Name gets a single Unique.
+ -- Also track the origin of the Names.
hsc_FC :: {-# UNPACK #-} !(IORef FinderCache),
-- ^ The cached result of performing finding in the file system