Hoogle Search
Within LTS Haskell 22.13 (ghc-9.6.4)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
module Data.Text.Internal.
Lazy 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! A module containing private Text internals. This exposes the Text representation and low level construction functions. Modules which extend the Text system may need to use this module.
-
A time and space-efficient implementation of Unicode text using lists of packed arrays. Note: Read below the synopsis for important notes on the use of this module. The representation used by this module is suitable for high performance use and for streaming large quantities of data. It provides a means to manipulate a large body of text without requiring that the entire content be resident in memory. Some operations, such as concat, append, reverse and cons, have better time complexity than their Data.Text equivalents, due to the underlying representation being a list of chunks. For other operations, lazy Texts are usually within a few percent of strict ones, but often with better heap usage if used in a streaming fashion. For data larger than available memory, or if you have tight memory constraints, this module will be the only option. This module is intended to be imported qualified, to avoid name clashes with Prelude functions. eg.
import qualified Data.Text.Lazy as L
-
No documentation available.
-
Unifies some modules, which are separated in the original API for unknown reasons.
-
text Data.Text.Internal.Lazy Check the invariant lazily.
fromLazyText :: Text -> Buildertext Data.Text.Internal.Builder O(1). A Builder taking a lazy Text, satisfying
toLazyText (fromLazyText t) = t
-
text Data.Text.Internal.Builder O(n). Extract a lazy Text from a Builder with a default buffer size. The construction work takes place if and when the relevant part of the lazy Text is demanded.
toLazyTextWith :: Int -> Builder -> Texttext Data.Text.Internal.Builder O(n). Extract a lazy Text from a Builder, using the given size for the initial buffer. The construction work takes place if and when the relevant part of the lazy Text is demanded. If the initial buffer is too small to hold all data, subsequent buffers will be the default buffer size.
fromLazyText :: Text -> Buildertext Data.Text.Lazy.Builder O(1). A Builder taking a lazy Text, satisfying
toLazyText (fromLazyText t) = t
-
text Data.Text.Lazy.Builder O(n). Extract a lazy Text from a Builder with a default buffer size. The construction work takes place if and when the relevant part of the lazy Text is demanded.
Page 1 of many | Next