pandoc-2.5: Conversion between markup formats

CopyrightCopyright (C) 2010-2018 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellSafe
LanguageHaskell2010

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 Source #

getContents :: IO String Source #

writeFileWith :: Newline -> FilePath -> String -> IO () Source #

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

putStrWith :: Newline -> String -> IO () Source #

putStr :: String -> IO () Source #

putStrLnWith :: Newline -> String -> IO () Source #

putStrLn :: String -> IO () Source #

hPutStrWith :: Newline -> Handle -> String -> IO () Source #

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

hPutStrLnWith :: Newline -> Handle -> String -> IO () Source #

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

hGetContents :: Handle -> IO String Source #

toString :: ByteString -> String Source #

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

toText :: ByteString -> Text Source #

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

fromString :: String -> ByteString Source #

fromText :: Text -> ByteString Source #

toStringLazy :: ByteString -> String Source #

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

fromTextLazy :: Text -> ByteString Source #

toTextLazy :: ByteString -> Text Source #

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

fromStringLazy :: String -> ByteString Source #

encodePath :: FilePath -> FilePath Source #

decodeArg :: String -> String Source #