HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleformatting-7.2.0Haskell2010

Formatting.ShortFormatters

Single letters for short formatting.

  • 13 values
  • Packageformatting-7.2.0
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceShortFormatters.hs
valued :: Integral a => Format r (a -> r)
#

Render an integral e.g. 123 -> "123", 0 -> "0".

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.)

valuesh :: Show a => Format r (a -> r)
#

Output a showable value (instance of Show) by turning it into Text.

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.