summaryrefslogtreecommitdiff
path: root/src/markdown2pdf.hs
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-21 06:22:02 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-11-21 06:22:02 +0000
commitdb01801199adfa57b98e2b70dcfe0fd50c9a2bbb (patch)
treed276f8638e2e25cfac0f3305dec239fb71607ebb /src/markdown2pdf.hs
parent14a25b287cb937cd5dbdd532971d3733326b18c4 (diff)
Use utf8-string IO in markdown2pdf.hs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1622 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src/markdown2pdf.hs')
-rw-r--r--src/markdown2pdf.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/markdown2pdf.hs b/src/markdown2pdf.hs
index 75d8c82e6..038549180 100644
--- a/src/markdown2pdf.hs
+++ b/src/markdown2pdf.hs
@@ -6,13 +6,15 @@ import Data.Maybe (isNothing)
import Control.Monad (when, unless, guard)
import Control.Exception (tryJust, bracket)
-import System.IO (stderr, hPutStrLn)
+import System.IO (stderr)
import System.IO.Error (isDoesNotExistError)
+import System.Environment ( getArgs, getProgName )
+import Prelude hiding ( putStr, putStrLn, writeFile, readFile, getContents )
+import System.IO.UTF8
import System.Exit (ExitCode (..), exitWith)
import System.FilePath
import System.Directory
import System.Process (readProcessWithExitCode)
-import System.Environment (getArgs, getProgName)
run :: FilePath -> [String] -> IO (Either String String)