Safe Haskell | None |
---|---|
Language | Haskell98 |
Formatting.Internal.Raw
Description
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.
Constructors
Hex a |
Instances
Enum a => Enum ( Hex a) Source # | |
Defined in Data.Text.Format.Types Methods succ :: Hex a -> Hex a Source # pred :: Hex a -> Hex a Source # toEnum :: Int -> Hex a Source # fromEnum :: Hex a -> Int Source # enumFrom :: Hex a -> [ Hex a] Source # enumFromThen :: Hex a -> Hex a -> [ Hex a] Source # enumFromTo :: Hex a -> Hex a -> [ Hex a] Source # enumFromThenTo :: Hex a -> Hex a -> Hex a -> [ Hex a] Source # |
|
Eq a => Eq ( Hex a) Source # | |
Integral a => Integral ( Hex a) Source # | |
Defined in Data.Text.Format.Types |
|
Num a => Num ( Hex a) Source # | |
Defined in Data.Text.Format.Types |
|
Ord a => Ord ( Hex a) Source # | |
Defined in Data.Text.Format.Types |
|
Read a => Read ( Hex a) Source # | |
Real a => Real ( Hex a) Source # | |
Defined in Data.Text.Format.Types Methods toRational :: Hex a -> Rational Source # |
|
Show a => Show ( Hex a) Source # | |
Integral a => Buildable ( Hex a) Source # | |