HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleformatting-7.2.0Haskell2010

Formatting.Internal.Raw

Reexports of things that were previously in the text-format package.

  • 2 types
  • 9 values
  • Packageformatting-7.2.0
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceRaw.hs
valuefixed
  1. :: Real a
  2. => Int

    Number of digits of precision after the decimal.

  3. -> a
  4. -> Builder
#

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

valueshortest :: Real a => a -> Builder
#

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

valueleft :: Buildable a => Int -> Char -> a -> Builder
#

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

valueright :: Buildable a => Int -> Char -> a -> Builder
#

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

valuehex :: Integral a => a -> Builder
#

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

valuei2d :: Int -> Char
#

Unsafe conversion for decimal digits.

newtypenewtype Shown a
#

Render a value using its Show instance.

Constructors

Instances14Bounded, Enum, Eq, Floating, Fractional, Integral, …
newtypenewtype Hex a
#

Render an integral type in hexadecimal.

Constructors

Instances9Enum, Eq, Integral, Num, Ord, Read, …
  • Enum a => Enum (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Eq a => Eq (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Integral a => Integral (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Num a => Num (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Ord a => Ord (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Read a => Read (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Real a => Real (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Show a => Show (Hex a)Defined in formatting-7.2.0 · Data.Text.Format.Types
  • Integral a => Buildable (Hex a)Defined in formatting-7.2.0 · Formatting.Buildable