| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Printf.TH
- s :: QuasiQuoter
- st :: QuasiQuoter
- sb :: QuasiQuoter
- hp :: QuasiQuoter
- p :: QuasiQuoter
Formatting strings
s :: QuasiQuoter Source #
[s|Hello, %s! (%d people greeted)|] :: ... -> String
This formatter follows the guidelines listed
here, except for
%n (store number of printed characters) for obvious
reasons.
%c ::Char%s ::String%? ::Showa => a %u ::Natural%d, %i ::Integrali => i %o ::Integrali => i %x, %X ::Integrali => i %a, %A ::RealFloatf => f %e, %E ::RealFloatf => f %f, %F ::RealFloatf => f %g, %G ::RealFloatf => f %p ::Ptra
sb :: QuasiQuoter Source #
[sb|Hello, %s! (%d people greeted)|] :: ... ->ByteString
The resulting string is UTF8-encoded.
Printing strings
hp :: QuasiQuoter Source #