summaryrefslogtreecommitdiffhomepage
path: root/purescript.html.markdown
diff options
context:
space:
mode:
authorchenbridge <chenbridge@Bridge-Mac.local>2016-02-29 09:35:27 +0800
committerchenbridge <chenbridge@Bridge-Mac.local>2016-02-29 09:35:27 +0800
commit447e80f31d06b5976864ad19b7c7cde71dc64c9c (patch)
tree3e1c32153d012a56111542e277a725ff798a76c3 /purescript.html.markdown
parentfbe569a5252d88e0b24ae05c1faa903a4da3d138 (diff)
parent326fa410fae93dc0f4767444759042515d7c28d5 (diff)
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'purescript.html.markdown')
-rw-r--r--purescript.html.markdown7
1 files changed, 3 insertions, 4 deletions
diff --git a/purescript.html.markdown b/purescript.html.markdown
index 6d8cfbb9..b413a9e3 100644
--- a/purescript.html.markdown
+++ b/purescript.html.markdown
@@ -48,7 +48,7 @@ not true -- false
23 == 23 -- true
1 /= 4 -- true
1 >= 4 -- false
--- Comparisions < <= > >=
+-- Comparisons < <= > >=
-- are defined in terms of compare
compare 1 2 -- LT
compare 2 2 -- EQ
@@ -62,7 +62,7 @@ true && (9 >= 19 || 1 < 2) -- true
"Hellow\
\orld" -- "Helloworld"
-- Multiline string with newlines
-"""Hello
+"""Hello
world""" -- "Hello\nworld"
-- Concatenate
"such " ++ "amaze" -- "such amaze"
@@ -197,7 +197,7 @@ let even x = x `mod` 2 == 0
filter even (1..10) -- [2,4,6,8,10]
map (\x -> x + 11) (1..5) -- [12,13,14,15,16]
--- Requires purescript-foldable-traversabe (Data.Foldable)
+-- Requires purescript-foldable-traversable (Data.Foldable)
foldr (+) 0 (1..10) -- 55
sum (1..10) -- 55
@@ -208,4 +208,3 @@ any even [1,2,3] -- true
all even [1,2,3] -- false
```
-