send usage info to stdout, not stderr
authorSimon Marlow <simonmar@microsoft.com>
Tue, 24 Jan 2006 14:55:51 +0000 (14:55 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 24 Jan 2006 14:55:51 +0000 (14:55 +0000)
ghc/compiler/main/Main.hs

index 37ce970..17eb526 100644 (file)
@@ -427,8 +427,8 @@ showGhcUsage cli_mode = do
   exitWith ExitSuccess
   where
      dump ""         = return ()
-     dump ('$':'$':s) = hPutStr stderr progName >> dump s
-     dump (c:s)              = hPutChar stderr c >> dump s
+     dump ('$':'$':s) = putStr progName >> dump s
+     dump (c:s)              = putChar c >> dump s
 
 -- -----------------------------------------------------------------------------
 -- Util