Don't touch fake names

This commit is contained in:
Iavor Diatchki 2022-11-16 15:40:15 -08:00
parent 7faf665fd3
commit b5d7cfed2b

View File

@ -264,7 +264,9 @@ renameModule' mname m =
module. This is used when the module is loaded at the command
line and users want to evalute things in the context of the
module -}
fuEnv <- lookupDefines (thing f')
fuEnv <- if isFakeName (thing f')
then pure mempty
else lookupDefines (thing f')
let ren x = Map.findWithDefault x x imap
-- XXX: This is not quite right as it only considers the things