pandoc-1.12.2.1: Conversion between markup formats

Portability | portable
Stability | alpha
Maintainer | John MacFarlane <jgm@berkeley.edu>
Safe Haskell | Safe-Inferred

Text.Pandoc.UTF8

Description

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

Synopsis

- 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
- fromString :: String -> ByteString
- toStringLazy :: ByteString -> String
- fromStringLazy :: String -> ByteString
- encodePath :: FilePath -> FilePath
- decodeArg :: String -> String

# Documentation

readFile :: FilePath -> IO String Source

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

getContents :: IO String Source

putStr :: String -> IO ()Source

putStrLn :: String -> IO ()Source

hPutStr :: 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.

fromString :: String -> ByteString Source

toStringLazy :: ByteString -> String Source

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

fromStringLazy :: String -> ByteString Source

encodePath :: FilePath -> FilePath Source

decodeArg :: String -> String Source