| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Text.All
- module Data.Text
- module Data.Text.IO
- module Data.Text.Encoding
- type LText = Text
- data Builder :: *
- show :: TextShow a => a -> Text
- lshow :: TextShow a => a -> LText
- bshow :: TextShow a => a -> Builder
- show' :: Show a => a -> Text
- lshow' :: Show a => a -> LText
- bshow' :: Show a => a -> Builder
- strictToLazy :: Text -> LText
- lazyToStrict :: LText -> Text
- module Data.Text.Format
- module Data.Text.Buildable
- format :: Params ps => Format -> ps -> Text
- lformat :: Params ps => Format -> ps -> LText
- bformat :: Params ps => Format -> ps -> Builder
- bsingleton :: Char -> Builder
- flush :: Builder
- builderToStrict :: Builder -> Text
- builderToLazy :: Builder -> LText
- strictToBuilder :: Text -> Builder
- lazyToBuilder :: LText -> Builder
Standard modules from text
module Data.Text
module Data.Text.IO
module Data.Text.Encoding
Types
A Builder is an efficient way to build lazy Text values.
There are several functions for constructing builders, but only one
to inspect them: to extract any data, you have to turn them into
lazy Text values using toLazyText.
Internally, a builder constructs a lazy Text by filling arrays
piece by piece. As each buffer is filled, it is 'popped' off, to
become a new chunk of the resulting lazy Text. All this is
hidden from the user of the Builder.
Showing
show :: TextShow a => a -> Text Source #
A fast variant of show for Text that only works for some types. If you want more instances, import text-show-instances or use show' if the type is your own and you only have a Show instance defined.
Via Show
Conversion
Formatting
module Data.Text.Format
module Data.Text.Buildable
Builder
O(1). Pop the strict Text we have constructed so far, if any,
yielding a new chunk in the result lazy Text.