Data.Text.IO.Utf8

with-utf8-1.1.0.0: Get your IO right on the first try

Safe Haskell | Safe-Inferred
Language | Haskell2010

Data.Text.IO.Utf8

Description

Deprecated: Use Data.Text.IO.Utf8 from the text package instead

Data.Text.IO for the modern world.

Wrappers around simple file reading/writing functions from the `text` package that reset the handle encoding to UTF-8.

Synopsis

- readFile :: MonadIO m => FilePath -> m Text
- writeFile :: (MonadIO m, MonadMask m) => FilePath -> Text -> m ()

# Documentation

readFile :: MonadIO m => FilePath -> m Text #

Like `readFile`, but assumes the file is encoded in UTF-8, regardless of the current locale.

writeFile :: (MonadIO m, MonadMask m) => FilePath -> Text -> m () #

Like `writeFile`, but encodes the data in UTF-8, regardless of the current locale.