pandoc-3.6.2: Conversion between markup formats
CopyrightCopyright (C) 2010-2024 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 Source #

getContents :: IO Text Source #

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

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

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

putStr :: Text -> IO () Source #

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

putStrLn :: Text -> IO () Source #

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

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

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

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

hGetContents :: Handle -> IO Text 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 #

Deprecated: decodeArg is now a no-op