[project @ 2000-12-18 15:44:46 by sewardj]
authorsewardj <unknown>
Mon, 18 Dec 2000 15:44:46 +0000 (15:44 +0000)
committersewardj <unknown>
Mon, 18 Dec 2000 15:44:46 +0000 (15:44 +0000)
invert sense of warnSelfImport guard

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