Module

Text.Format

A module to format strings and numbers in a way similar to printf in C-style languages.

#width

width :: Int -> Properties

The minium width of the output.

#zeroFill

zeroFill :: Properties

Fill the free space with zeros instead of spaces.

#signed

signed :: Properties

Explicitely show a '+' sign for positive numbers. Gets ignored for non-numeric types.

#precision

precision :: Int -> Properties

Number of decimal places. Gets ignored for non-numeric types.

#decimalMark

decimalMark :: Char -> Properties

Delimiter character. Gets ignored for non-numeric types.

#Format

class Format a  where

A class for types that can be formatted using the specified properties.

Members

Instances

Modules