text-format-heavy-0.1.2.1: Full-weight string formatting library, analog of Python's string.format

Safe HaskellNone
LanguageHaskell2010

Data.Text.Format.Heavy.Formats

Description

This module contains format descriptions for most used variable types.

Synopsis

Documentation

data Align Source #

Alignment of string within specified width

Instances

Eq Align Source # 

Methods

(==) :: Align -> Align -> Bool #

(/=) :: Align -> Align -> Bool #

Show Align Source # 

Methods

showsPrec :: Int -> Align -> ShowS #

show :: Align -> String #

showList :: [Align] -> ShowS #

data Sign Source #

Whether to show the sign of number

Instances

Eq Sign Source # 

Methods

(==) :: Sign -> Sign -> Bool #

(/=) :: Sign -> Sign -> Bool #

Show Sign Source # 

Methods

showsPrec :: Int -> Sign -> ShowS #

show :: Sign -> String #

showList :: [Sign] -> ShowS #

data Radix Source #

Number base

Constructors

Decimal 
Hexadecimal 

Instances

Eq Radix Source # 

Methods

(==) :: Radix -> Radix -> Bool #

(/=) :: Radix -> Radix -> Bool #

Show Radix Source # 

Methods

showsPrec :: Int -> Radix -> ShowS #

show :: Radix -> String #

showList :: [Radix] -> ShowS #

data GenericFormat Source #

Generic format description. This is usable for integers, floats and strings.