text-0.11.2.0: An efficient packed Unicode text type.

PortabilityGHC
Stabilityexperimental
Maintainerbos@serpentine.com
Safe HaskellSafe-Infered

Data.Text.IO.Internal

Description

Low-level support for text I/O.

Synopsis

Documentation

hGetLineWith :: ([Text] -> t) -> Handle -> IO tSource

Read a single line of input from a handle, constructing a list of decoded chunks as we go. When we're done, transform them into the destination type.

readChunk :: Handle__ -> CharBuffer -> IO TextSource

Read a single chunk of strict text from a buffer. Used by both the strict and lazy implementations of hGetContents.