
Simon Hengel pushed to branch wip/sol/hie-wierd-in-as-external at Glasgow Haskell Compiler / GHC Commits: 5367b6fe by Simon Hengel at 2025-08-06T11:16:37+07:00 Rely on knownKeysOrigNameCache - - - - - 1 changed file: - compiler/GHC/Iface/Ext/Binary.hs Changes: ===================================== compiler/GHC/Iface/Ext/Binary.hs ===================================== @@ -285,10 +285,11 @@ fromHieName :: NameCache -> HieName -> IO Name fromHieName nc hie_name = do case hie_name of - ExternalName mod occ _ | Just name <- isKnownOrigName_maybe mod occ -> return name - ExternalName mod occ span -> updateNameCache nc mod occ $ \cache -> do case lookupOrigNameCache cache mod occ of + -- Note that this may be a wired-in name (provided that the NameCache + -- was initialized with know-key names, which is always the case if you + -- use `newNameCache`). Just name -> pure (cache, name) Nothing -> do uniq <- takeUniqFromNameCache nc View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5367b6feeed4fc26536d72f49234f251... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/5367b6feeed4fc26536d72f49234f251... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Simon Hengel (@sol)