minor fix to the clashing export error message
authorSimon Marlow <simonmar@microsoft.com>
Tue, 22 Aug 2006 11:25:18 +0000 (11:25 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 22 Aug 2006 11:25:18 +0000 (11:25 +0000)
The ordering of items in the parsed export list is now correct, so we
have to compensate to get the right output again.

compiler/rename/RnNames.lhs

index 63fd99d..b1f3795 100644 (file)
@@ -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