Portability | GHC-only |
---|---|
Stability | experimental |
Maintainer | kudahkukarek@gmail.com |
Safe Haskell | Trustworthy |
This module offers much faster locale-aware I/O than Data.Text.IO due to
the usage of hPutBuf
to write the resulting ByteString
all at once, while Data.Text.IO writes characters one at a time, taking the
Handle
lock each time. Since functions in this module take the lock just
once, they can safely be used from multiple threads without fear of messed up
output.
Functions in this module require at least twice as much memory as the
Text
they operate on to output it. For strings more than a half
of available RAM in size, this may result in memory exhaustion.
This module is intended to be imported qualified
.
Documentation
appendFile :: FilePath -> Text -> IO ()Source
Like appendFile
, but writes the Text
all at once.