Safe Haskell | None |
---|---|
Language | Haskell98 |
Reexports of things that were previously in the text-format
package.
Synopsis
- left :: Buildable a => Int -> Char -> a -> Builder
- right :: Buildable a => Int -> Char -> a -> Builder
- hex :: Integral a => a -> Builder
- fixed :: Real a => Int -> a -> Builder
- shortest :: Real a => a -> Builder
- (<>) :: Builder -> Builder -> Builder
- i2d :: Int -> Char
- decimal :: (Integral a, Bounded a) => a -> Builder
- integer :: Int -> Integer -> Builder
- hexadecimal :: Integral a => a -> Builder
- minus :: Builder
- newtype Shown a = Shown {
- shown :: a
- newtype Hex a = Hex a
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
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.
hexadecimal :: Integral a => a -> Builder Source #
Render a value using its Show
instance.
Instances
Integer format control
Render an integral type in hexadecimal.
Hex a |
Instances
Enum a => Enum (Hex a) Source # | |
Defined in Data.Text.Format.Types | |
Eq a => Eq (Hex a) Source # | |
Integral a => Integral (Hex a) Source # | |
Num a => Num (Hex a) Source # | |
Ord a => Ord (Hex a) Source # | |
Read a => Read (Hex a) Source # | |
Real a => Real (Hex a) Source # | |
Defined in Data.Text.Format.Types toRational :: Hex a -> Rational # | |
Show a => Show (Hex a) Source # | |
Integral a => Buildable (Hex a) Source # | |