Community
Modules 50

Data.Text.Internal.IO

experimental

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

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

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 ()

Print a Stream Char.

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

Write a string to a handle.

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

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

Maintainer
bos@serpentine.com
Portability
GHC
Copyright
(c) 2009, 2010 Bryan O'Sullivan, (c) 2009 Simon Marlow
License
BSD-style
Build record and source files

Community contribution. The service has not verified this documentation. The generator reported 2 diagnostics.

Target: Linux on x86-64. Some inferred types and resolved links are not available.

Generator: aihc-haddock-858b1951-web-1

Metadata snapshot: 0b0724abd14577f7a6c8172d62e3e1c0808feb114d4d379402e17f37e3c7801e

Open the dependency plan · Download the documentation model

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.