| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Haskell.Printf
Synopsis
- s :: QuasiQuoter
- p :: QuasiQuoter
- hp :: QuasiQuoter
Documentation
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-- datatypes with Show instances %? ::Showa => a -- signed integer types %d, %i ::Integrali => i -- unsigned integer types %u :: (Boundedi,Integrali) => i %o :: (Boundedi,Integrali) => i %x, %X :: (Boundedi,Integrali) => i -- floats %a, %A ::RealFloatf => f %e, %E ::RealFloatf => f %f, %F ::RealFloatf => f %g, %G ::RealFloatf => f %p ::Ptra
N.B.: For consistency with other printf implementations, arguments formatted as
unsigned integer types will "underflow" if negative.
p :: QuasiQuoter Source #