Skip to content
Quick and dirty (yet safe) format strings for PureScript.
PureScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/Data/String/Format
test
.gitignore
LICENSE
README.md
bower.json

README.md

purescript-quick-format

Quick and dirty (yet safe) format strings for purescript.

Usage

import Data.String.Format.Quick (format)

format "I like ${adj} ${noun}." {adj: "stinky", noun: "durians"}
  == "I like stinky durians."

Missing record attributes are replaced by an empty string:

import Data.String.Format.Quick (format)

format "Can't find ${missing}." {} == "Can't find ."

Documentation

Module documentation is published on Pursuit.

You can’t perform that action at this time.