Safe Haskell | None |
---|---|
Language | Haskell2010 |
- 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
%? ::Show
a => a %u ::Natural
%d, %i ::Integral
i => i %o ::Integral
i => i %x, %X ::Integral
i => i %a, %A ::RealFloat
f => f %e, %E ::RealFloat
f => f %f, %F ::RealFloat
f => f %g, %G ::RealFloat
f => f %p ::Ptr
a
sb :: QuasiQuoter Source #
[sb
|Hello, %s! (%d people greeted)|] :: ... ->ByteString
The resulting string is UTF8-encoded.
Printing strings
hp :: QuasiQuoter Source #