Skip to content

sharkdp/purescript-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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"

About

Type-safe, printf-style formatting for PureScript

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •