W3cubDocs

/Haskell 9

Data.Text.Internal.IO

Copyright (c) 2009 2010 Bryan O'Sullivan
(c) 2009 Simon Marlow
License BSD-style
Maintainer [email protected]
Stability experimental
Portability GHC
Safe Haskell None
Language Haskell2010

Description

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.

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

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 Text Source

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

hPutStream :: Handle -> Stream Char -> IO () Source

Print a Stream Char.

hPutStr :: Handle -> Text -> IO () Source

Write a string to a handle.

hPutStrLn :: Handle -> Text -> IO () Source

Write a string to a handle, followed by a newline.

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/text-2.1.2-84f9/Data-Text-Internal-IO.html