Skip to content

Type-safe, printf-style formatting for PureScript

License

Notifications You must be signed in to change notification settings

feramhq/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

Packages

No packages published

Languages

  • PureScript 95.2%
  • Dhall 4.8%