@@ -412,17 +412,17 @@ options =
412412 (NoArg
413413 (\_ -> do
414414 prg <- getProgName
415− hPutStrLn stderr (prg ++ " " ++ pandocVersion ++ compileInfo ++
415+ hPutStrLn stdout (prg ++ " " ++ pandocVersion ++ compileInfo ++
416416 copyrightMessage)
417− exitWith $ ExitFailure 4))
417+ exitWith ExitSuccess ))
418418 "" -- "Print version"
419419
420420 , Option "h" ["help"]
421421 (NoArg
422422 (\_ -> do
423423 prg <- getProgName
424− hPutStr stderr (usageMessage prg options)
425− exitWith $ ExitFailure 2))
424+ hPutStr stdout (usageMessage prg options)
425+ exitWith ExitSuccess ))
426426 "" -- "Show help"
427427 ]
428428