Make the error message mentioning -XPatternSignatures spell the flag correctly
[ghc-hetmet.git] / compiler / rename / RnNames.lhs
index 3048efd..8f24141 100644 (file)
@@ -8,7 +8,7 @@
 -- The above warning supression flag is a temporary kludge.
 -- While working on this module you are encouraged to remove it and fix
 -- any warnings in the module. See
---     http://hackage.haskell.org/trac/ghc/wiki/CodingStyle#Warnings
+--     http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings
 -- for details
 
 module RnNames (
@@ -1254,8 +1254,9 @@ printMinimalImports imps
    mod_ies  <-  initIfaceTcRn $ mappM to_ies (fmToList imps) ;
    this_mod <- getModule ;
    rdr_env  <- getGlobalRdrEnv ;
+   dflags   <- getDOpts ;
    ioToTcRn (do { h <- openFile (mkFilename this_mod) WriteMode ;
-                 printForUser h (mkPrintUnqualified rdr_env) 
+                 printForUser h (mkPrintUnqualified dflags rdr_env) 
                                 (vcat (map ppr_mod_ie mod_ies)) })
    }
   where