Fix for warning message (bug #812)
authorDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Tue, 4 Jul 2006 16:34:13 +0000 (16:34 +0000)
committerDuncan Coutts <duncan.coutts@worc.ox.ac.uk>
Tue, 4 Jul 2006 16:34:13 +0000 (16:34 +0000)
say "{-# SOURCE #-}" rather than "{- SOURCE -}" in warning message.
Fixes http://hackage.haskell.org/trac/ghc/ticket/812

compiler/rename/RnNames.lhs

index 654c101..658028c 100644 (file)
@@ -325,7 +325,7 @@ importsFromImportDecl this_mod
     returnM (gbl_env, imports)
 
 warnRedundantSourceImport mod_name
-  = ptext SLIT("Unnecessary {- SOURCE -} in the import of module")
+  = ptext SLIT("Unnecessary {-# SOURCE #-} in the import of module")
           <+> quotes (ppr mod_name)
 \end{code}