Adjust error message slightly to make it clearer
authorsimonpj@microsoft.com <unknown>
Fri, 13 Mar 2009 13:44:02 +0000 (13:44 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 13 Mar 2009 13:44:02 +0000 (13:44 +0000)
compiler/rename/RnNames.lhs

index 8448857..d2add1f 100644 (file)
@@ -1389,8 +1389,9 @@ dodgyExportWarn item = dodgyMsg (ptext (sLit "export")) item
 
 dodgyMsg :: OutputableBndr n => SDoc -> n -> SDoc
 dodgyMsg kind tc
 
 dodgyMsg :: OutputableBndr n => SDoc -> n -> SDoc
 dodgyMsg kind tc
-  = sep [ ptext (sLit "The") <+> kind <+> ptext (sLit "item") <+> quotes (ppr (IEThingAll tc)),
-         ptext (sLit "suggests that") <+> quotes (ppr tc) <+> ptext (sLit "has constructors or class methods,"),
+  = sep [ ptext (sLit "The") <+> kind <+> ptext (sLit "item") <+> quotes (ppr (IEThingAll tc))
+               <+> ptext (sLit "suggests that"),
+         quotes (ppr tc) <+> ptext (sLit "has (in-scope) constructors or class methods,"),
          ptext (sLit "but it has none") ]
 
 exportItemErr :: IE RdrName -> SDoc
          ptext (sLit "but it has none") ]
 
 exportItemErr :: IE RdrName -> SDoc