@@ -46,7 +46,7 @@ import System.Console.GetOpt
46import Data.Char ( toLower )
46import Data.Char ( toLower )
47import Data.List ( intercalate, isPrefixOf )
47import Data.List ( intercalate, isPrefixOf )
48import System.Directory ( getAppUserDataDirectory, doesFileExist, findExecutable )
48import System.Directory ( getAppUserDataDirectory, doesFileExist, findExecutable )
49−import System.IO ( stdout )
49+import System.IO ( stdout, hPutStr, hPutStrLn )
50import System.IO.Error ( isDoesNotExistError )
50import System.IO.Error ( isDoesNotExistError )
51import qualified Control.Exception as E
51import qualified Control.Exception as E
52import Control.Exception.Extensible ( throwIO )
52import Control.Exception.Extensible ( throwIO )
@@ -312,7 +312,7 @@ options =
312 (\arg _ -> do
312 (\arg _ -> do
313 templ <- getDefaultTemplate Nothing arg
313 templ <- getDefaultTemplate Nothing arg
314 case templ of
314 case templ of
315− Right t -> UTF8.hPutStr stdout t
315+ Right t -> hPutStr stdout t
316 Left e -> error $ show e
316 Left e -> error $ show e
317 exitWith ExitSuccess)
317 exitWith ExitSuccess)
318 "FORMAT")
318 "FORMAT")
@@ -663,7 +663,7 @@ options =
664 (\_ -> do
664 (\_ -> do
665 prg <- getProgName
665 prg <- getProgName
666− UTF8.hPutStrLn stdout (prg ++ " " ++ pandocVersion ++ compileInfo ++
666+ hPutStrLn stdout (prg ++ " " ++ pandocVersion ++ compileInfo ++
667 copyrightMessage)
667 copyrightMessage)
668 exitWith ExitSuccess ))
668 exitWith ExitSuccess ))
669 "" -- "Print version"
669 "" -- "Print version"
@@ -672,7 +672,7 @@ options =
673 (\_ -> do
673 (\_ -> do
674 prg <- getProgName
674 prg <- getProgName
675− UTF8.hPutStr stdout (usageMessage prg options)
675+ hPutStr stdout (usageMessage prg options)
676 exitWith ExitSuccess ))
676 exitWith ExitSuccess ))
677 "" -- "Show help"
677 "" -- "Show help"
@@ -827,8 +827,8 @@ main = do
829 when dumpArgs $
829 when dumpArgs $
830− do UTF8.hPutStrLn stdout outputFile
830+ do hPutStrLn stdout outputFile
831− mapM_ (\arg -> UTF8.hPutStrLn stdout arg) args
831+ mapM_ (\arg -> hPutStrLn stdout arg) args
832 exitWith ExitSuccess
832 exitWith ExitSuccess
834 let sources = if ignoreArgs then [] else args
834 let sources = if ignoreArgs then [] else args
@@ -1026,8 +1026,8 @@ main = do
1026 writeBinary = B.writeFile (UTF8.encodePath outputFile)
1026 writeBinary = B.writeFile (UTF8.encodePath outputFile)
1028 let writerFn :: FilePath -> String -> IO ()
1028 let writerFn :: FilePath -> String -> IO ()
1029− writerFn "-" = UTF8.putStr
1029+ writerFn "-" = putStr
1030− writerFn f = UTF8.writeFile f
1030+ writerFn f = writeFile f
1032 case getWriter writerName' of
1032 case getWriter writerName' of
1033 Left e -> err 9 e
1033 Left e -> err 9 e