From: Simon Marlow Date: Tue, 22 Aug 2006 11:25:18 +0000 (+0000) Subject: minor fix to the clashing export error message X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=a31e156abe004186a959d04167be062969034f54 minor fix to the clashing export error message The ordering of items in the parsed export list is now correct, so we have to compensate to get the right output again. --- diff --git a/compiler/rename/RnNames.lhs b/compiler/rename/RnNames.lhs index 63fd99d..b1f3795 100644 --- a/compiler/rename/RnNames.lhs +++ b/compiler/rename/RnNames.lhs @@ -725,7 +725,7 @@ check_occs ie occs names | otherwise -- Same occ name but different names: an error -> do { global_env <- getGlobalRdrEnv ; - addErr (exportClashErr global_env name name' ie ie') ; + addErr (exportClashErr global_env name' name ie' ie) ; returnM occs } where name_occ = nameOccName name