Module
Data.String.Format.Quick
- Package
- purescript-quick-format
- Repository
- matthewleon/purescript-quick-format
#format Source
format :: forall r. Homogeneous r String => String -> Record r -> String
A quick and dirty (yet safe) format string.
Example:
format "I like ${adj} ${noun}." {adj: "stinky", noun: "durians"}
== "I like stinky durians."
Though I have yet to prove it to the type system, the Homogeneous
constraint below should make these operations safe.
- Modules
- Data.
String. Format. Quick