Skip to content

Type-safe, printf-style formatting for PureScript

License

Notifications You must be signed in to change notification settings

feramhq/purescript-format

This branch is 1 commit ahead of, 1 commit behind sharkdp/purescript-format:master.

Folders and files

NameName
Last commit message
Last commit date
May 14, 2022
May 14, 2022
May 14, 2022
Apr 19, 2016
Mar 6, 2016
May 14, 2022
May 14, 2022
May 14, 2022
May 14, 2022

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%