HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Moduleformatting-7.2.0Haskell2010

Formatting.ShortFormatters

Single letters for short formatting.

Synopsis
  • value t
  • value d
  • value b
  • value o
  • value x
  • value st
  • value s
  • value sh
  • value c
  • value f
  • value sf
  • value l
  • value r
  • Packageformatting-7.2.0
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceShortFormatters.hs
valueb :: Integral a => Format r (a -> r)

Render an integer using binary notation. (No leading 0b is added.)

valueo :: Integral a => Format r (a -> r)

Render an integer using octal notation. (No leading 0o is added.)

valuex :: Integral a => Format r (a -> r)

Render an integer using hexadecimal notation. (No leading 0x is added.)

valuef :: Real a => Int -> Format r (a -> r)

Render a floating point number using normal notation, with the given number of decimal places.

valuesf :: Real a => Format r (a -> r)

Render a floating point number using the smallest number of digits that correctly represent it.

valuel :: Buildable a => Int -> Char -> Format r (a -> r)

Pad the left hand side of a string until it reaches k characters wide, if necessary filling with character ch.

valuer :: Buildable a => Int -> Char -> Format r (a -> r)

Pad the right hand side of a string until it reaches k characters wide, if necessary filling with character ch.