We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02d09b9 commit 9c08592Copy full SHA for 9c08592
README.md
@@ -0,0 +1,22 @@
1
+# purescript-template-strings
2
+
3
+[](https://github.com/purescripters/purescript-template-strings/releases)
4
5
+Sample usage:
6
7
+```haskell
8
+> import Data.TemplateString.Unsafe ((<~>))
9
+> "Hello, ${firstName} ${lastName}!" <~> { firstName: "Haskell", lastName: "Curry" }
10
+"Hello, Haskell Curry!"
11
12
+> "The answer: ${answer}" <~> { answer: 42 }
13
+"The answer: 42"
14
+```
15
16
17
+> import Data.TemplateString ((<^>))
18
+> import Data.Tuple.Nested ((/\))
19
+> import Data.Show (show)
20
+> "Pi: ${pi}, Phi: ${phi}" <^> ["pi" /\ (show 3.1415), "phi" /\ (show 1.618)]
21
+"Pi: 3.1415, Phi: 1.618"
22
0 commit comments