pandoc-1.11.1: Conversion between markup formats

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Safe HaskellNone

Text.Pandoc.UTF8

Description

UTF-8 aware string IO functions that will work with GHC 6.10, 6.12, or 7.

Synopsis

Documentation

readFile :: FilePath -> IO String

writeFile :: FilePath -> String -> IO ()

getContents :: IO String

putStr :: String -> IO ()

putStrLn :: String -> IO ()

hPutStr :: Handle -> String -> IO ()

hPutStrLn :: Handle -> String -> IO ()

hGetContents :: Handle -> IO String

toString :: ByteString -> String

Convert UTF8-encoded ByteString to String, also removing '\r' characters.

fromString :: String -> ByteString

toStringLazy :: ByteString -> String

Convert UTF8-encoded ByteString to String, also removing '\r' characters.

encodePath :: FilePath -> FilePath

decodeArg :: String -> String