From 79afaf6d31dafb492bfe208f313d19ab3f268aeb Mon Sep 17 00:00:00 2001 From: sewardj Date: Mon, 18 Dec 2000 15:44:46 +0000 Subject: [PATCH] [project @ 2000-12-18 15:44:46 by sewardj] invert sense of warnSelfImport guard --- ghc/compiler/rename/RnHiFiles.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/rename/RnHiFiles.lhs b/ghc/compiler/rename/RnHiFiles.lhs index c50d2dd..d7ccd6e 100644 --- a/ghc/compiler/rename/RnHiFiles.lhs +++ b/ghc/compiler/rename/RnHiFiles.lhs @@ -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 -- 1.7.10.4