Portability | GHC |
---|---|
Stability | experimental |
Maintainer | [email protected] |
Safe Haskell | None |
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 -> Holey Builder (IO ()) a -> aSource
Run the formatter and put the output onto the given Handle.
Formatting library
module Formatting.Holey
module Formatting.Formatters