Skip to content

sharkdp/purescript-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a846402 · Oct 29, 2016

History

11 Commits
Jun 12, 2016
Oct 29, 2016
Mar 6, 2016
Apr 19, 2016
Mar 6, 2016
Oct 29, 2016

Repository files navigation

purescript-format

Type-safe, printf-style formatting for PureScript.

Usage

> format (width 6) 123
"   123"

> format (signed <> width 6) 123
"  +123"

> format (zeroFill <> width 6) (-123)
"-00123"

> format (width 8 <> precision 3) pi
"   3.142"

> format (width 8 <> precision 3) 10.0
"  10.000"

> format (width 8) "foo"
"     foo"