From: simonmar Date: Mon, 8 Oct 2001 14:22:43 +0000 (+0000) Subject: [project @ 2001-10-08 14:22:43 by simonmar] X-Git-Tag: Approximately_9120_patches~855 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=3881b0009164b4438b444e7491a0003f4c9767dd;p=ghc-hetmet.git [project @ 2001-10-08 14:22:43 by simonmar] Turn the error message about package mismatch into a warning. This is really harmless at the moment (only fatal with DLLs), but really gets in the way when you want to build a package and also use it directly with the appropriate -i/-l flags. --- diff --git a/ghc/compiler/rename/RnHiFiles.lhs b/ghc/compiler/rename/RnHiFiles.lhs index e5d6c0c..dd4baca 100644 --- a/ghc/compiler/rename/RnHiFiles.lhs +++ b/ghc/compiler/rename/RnHiFiles.lhs @@ -535,7 +535,7 @@ findAndReadIface doc_str mod_name hi_boot_file (hiModuleNameMismatchWarn wanted_mod read_mod) `thenRn_` -- check that the package names agree - checkRn + warnCheckRn (modulePackage wanted_mod == modulePackage read_mod) (packageNameMismatchWarn wanted_mod read_mod) `thenRn_`