pandoc-3.1.9: Conversion between markup formats
CopyrightCopyright (C) 2010-2023 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellSafe-Inferred
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 Text #

getContents :: IO Text #

writeFileWith :: Newline -> FilePath -> Text -> IO () #

writeFile :: FilePath -> Text -> IO () #

putStrWith :: Newline -> Text -> IO () #

putStr :: Text -> IO () #

putStrLnWith :: Newline -> Text -> IO () #

putStrLn :: Text -> IO () #

hPutStrWith :: Newline -> Handle -> Text -> IO () #

hPutStr :: Handle -> Text -> IO () #

hPutStrLnWith :: Newline -> Handle -> Text -> IO () #

hPutStrLn :: Handle -> Text -> IO () #

hGetContents :: Handle -> IO Text #

toString :: ByteString -> String #

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

toText :: ByteString -> Text #

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

fromText :: Text -> ByteString #

toStringLazy :: ByteString -> String #

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

toTextLazy :: ByteString -> Text #

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

encodePath :: FilePath -> FilePath #

decodeArg :: String -> String #

Deprecated: decodeArg is now a no-op