HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduletext-2.1.3Haskell2010

Data.Text.Internal.IO

Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!

Low-level support for text I/O.

  • 5 values
  • Packagetext-2.1.3
  • Exports5
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceIO.hs
valuehGetLineWith :: ([Text] -> t) -> Handle -> IO t
#

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.

valuereadChunk :: Handle__ -> CharBuffer -> IO Text
#

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