[project @ 2000-12-18 15:44:46 by sewardj]
[ghc-hetmet.git] / ghc / compiler / rename / RnHiFiles.lhs
index c50d2dd..d7ccd6e 100644 (file)
@@ -152,7 +152,7 @@ tryLoadInterface doc_str mod_name from
        -- Check that we aren't importing ourselves. 
        -- That only happens in Rename.checkOldIface, 
        -- which doesn't call tryLoadInterface
-   warnCheckRn (moduleName this_mod == mod_name)
+   warnCheckRn (moduleName this_mod /= mod_name)
                (warnSelfImport this_mod)               `thenRn_`
 
        -- READ THE MODULE IN