Copyright | (c) 2013 Chris Done, 2013 Shachaf Ben-Kiki |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
Formatting
Description
Combinator-based type-safe formatting (like printf() or FORMAT) for Text.
Example:
>>>
format ("Person's name is " % text % ", age is " % hex) "Dave" 54
See Formatting.Formatters for a complete list of formatting combinators.
Top-level functions
hprint :: Handle -> Format (IO ()) a -> a Source
Run the formatter and put the output onto the given Handle
.
Formatting library
module Formatting.Holey
module Formatting.Formatters
Other functions
formatToString :: Format [Char] a -> a Source
Run the formatter and return a list of characters.