Package

purescript-quick-format

Repository
matthewleon/purescript-quick-format
License
MIT
Uploaded by
matthewleon
Published on
2017-12-15T22:54:25Z

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.