[project @ 2002-05-03 11:10:47 by simonmar]
authorsimonmar <unknown>
Fri, 3 May 2002 11:10:47 +0000 (11:10 +0000)
committersimonmar <unknown>
Fri, 3 May 2002 11:10:47 +0000 (11:10 +0000)
Eliminate a duplicate binding

ghc/compiler/rename/Rename.lhs

index 9699e5e..5c18868 100644 (file)
@@ -509,9 +509,7 @@ rename ghci_mode this_module
        -- introduced by the type checker.
        dont_discard :: Name -> Bool
        dont_discard | ghci_mode == Interactive = isExternalName
-                    | otherwise                = (`elemNameSet` exported_names)
-
-       exported_names    = availsToNameSet export_avails
+                    | otherwise                = (`elemNameSet` export_fvs)
 
        mod_iface = ModIface {  mi_module   = this_module,
                                mi_package  = opt_InPackage,