pandoc-2.9.2.1: Conversion between markup formats
CopyrightCopyright (C) 2010-2020 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 String #

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

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

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

putStr :: String -> IO () #

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

putStrLn :: String -> IO () #

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

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

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

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

hGetContents :: Handle -> IO String #

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.

fromString :: String -> ByteString #

fromText :: Text -> ByteString #

toStringLazy :: ByteString -> String #

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

fromTextLazy :: Text -> ByteString #

toTextLazy :: ByteString -> Text #

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

fromStringLazy :: String -> ByteString #

encodePath :: FilePath -> FilePath #