HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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.