Simon Hengel pushed to branch wip/sol/hie-wierd-in-as-external at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • compiler/GHC/Iface/Ext/Binary.hs
    ... ... @@ -285,10 +285,11 @@ fromHieName :: NameCache -> HieName -> IO Name
    285 285
     fromHieName nc hie_name = do
    
    286 286
     
    
    287 287
       case hie_name of
    
    288
    -    ExternalName mod occ _ | Just name <- isKnownOrigName_maybe mod occ -> return name
    
    289
    -
    
    290 288
         ExternalName mod occ span -> updateNameCache nc mod occ $ \cache -> do
    
    291 289
           case lookupOrigNameCache cache mod occ of
    
    290
    +        -- Note that this may be a wired-in name (provided that the NameCache
    
    291
    +        -- was initialized with know-key names, which is always the case if you
    
    292
    +        -- use `newNameCache`).
    
    292 293
             Just name -> pure (cache, name)
    
    293 294
             Nothing   -> do
    
    294 295
               uniq <- takeUniqFromNameCache nc