Safe Haskell | Safe |
---|---|
Language | Haskell98 |
System.IO related functions.
- read_file_utf8_text :: FilePath -> IO Text
- read_file_utf8 :: FilePath -> IO String
- read_file_utf8_or :: String -> FilePath -> IO String
- write_file_utf8 :: FilePath -> String -> IO ()
- read_file_iso_8859_1 :: FilePath -> IO String
- read_file_locale :: FilePath -> IO String
Documentation
read_file_utf8_text :: FilePath -> IO Text Source #
decodeUtf8
of readFile
.
read_file_utf8 :: FilePath -> IO String Source #
Read (strictly) a UTF-8 encoded text file, implemented via Data.Text.
read_file_utf8_or :: String -> FilePath -> IO String Source #
read_file_utf8
, or a default value if the file doesn't exist.