formatting-6.1.0: Combinator-based type-safe formatting (like printf() or FORMAT)

Safe HaskellSafe-Inferred
LanguageHaskell98

Formatting.Internal

Description

Internal format starters.

Synopsis

Documentation

format :: Format Text a -> a Source

Run the formatter and return a lazy Text value.

sformat :: Format Text a -> a Source

Run the formatter and return a strict Text value.

bprint :: Format Builder a -> a Source

Run the formatter and return a Builder value.

fprint :: Format (IO ()) a -> a Source

Run the formatter and print out the text to stdout.

hprint :: Handle -> Format (IO ()) a -> a Source

Run the formatter and put the output onto the given Handle.

formatToString :: Format [Char] a -> a Source

Run the formatter and return a list of characters.