formatting-6.3.7: Combinator-based type-safe formatting (like printf() or FORMAT)
Safe Haskell None
Language Haskell98

Formatting.Internal.Raw

Description

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

Synopsis

Format control

left :: Buildable a => Int -> Char -> a -> Builder Source #

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

right :: Buildable a => Int -> Char -> a -> Builder Source #

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

Integers

hex :: Integral a => a -> Builder Source #

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

Floating point numbers

fixed Source #

Arguments

:: Real a
=> Int

Number of digits of precision after the decimal.

-> a
-> Builder

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

shortest :: Real a => a -> Builder Source #

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

(<>) :: Builder -> Builder -> Builder infixr 4 Source #

The normal mappend function with right associativity instead of left.

i2d :: Int -> Char Source #

Unsafe conversion for decimal digits.

newtype Shown a Source #

Render a value using its Show instance.

Constructors

Shown

Fields

Instances

Instances details
Bounded a => Bounded ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Enum a => Enum ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Eq a => Eq ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Floating a => Floating ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Fractional a => Fractional ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Integral a => Integral ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Num a => Num ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Ord a => Ord ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Read a => Read ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Real a => Real ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

RealFloat a => RealFloat ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

RealFrac a => RealFrac ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Show a => Show ( Shown a) Source #
Instance details

Defined in Data.Text.Format.Types

Show a => Buildable ( Shown a) Source #
Instance details

Defined in Formatting.Buildable

Integer format control

newtype Hex a Source #

Render an integral type in hexadecimal.

Constructors

Hex a

Instances

Instances details
Enum a => Enum ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Eq a => Eq ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Integral a => Integral ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Num a => Num ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Ord a => Ord ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Read a => Read ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Real a => Real ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Show a => Show ( Hex a) Source #
Instance details

Defined in Data.Text.Format.Types

Integral a => Buildable ( Hex a) Source #
Instance details

Defined in Formatting.Buildable