From 38d92105b268e2057521a51c10370b29898ddfe0 Mon Sep 17 00:00:00 2001 From: Nigel Thorne Date: Fri, 26 Feb 2016 09:30:35 +1100 Subject: spelling/typo --- purescript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'purescript.html.markdown') diff --git a/purescript.html.markdown b/purescript.html.markdown index 6d8cfbb9..7dd97a18 100644 --- a/purescript.html.markdown +++ b/purescript.html.markdown @@ -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 -- cgit v1.2.3 From 952a7da82a30d4509d0d5aa8cfc61e63f6b11ce5 Mon Sep 17 00:00:00 2001 From: Jacob Ward Date: Sat, 27 Feb 2016 15:38:22 -0700 Subject: [purescript/en] comparisions -> comparisons --- purescript.html.markdown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'purescript.html.markdown') diff --git a/purescript.html.markdown b/purescript.html.markdown index 7dd97a18..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" @@ -208,4 +208,3 @@ any even [1,2,3] -- true all even [1,2,3] -- false ``` - -- cgit v1.2.3 From a70f8469c44ac4a985c91ade6d142e7a83c5de04 Mon Sep 17 00:00:00 2001 From: ven Date: Wed, 14 Dec 2016 19:59:16 +0100 Subject: Random -> Safe --- purescript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'purescript.html.markdown') diff --git a/purescript.html.markdown b/purescript.html.markdown index b413a9e3..19346760 100644 --- a/purescript.html.markdown +++ b/purescript.html.markdown @@ -85,7 +85,7 @@ head [1,2,3] -- Just (1) tail [3,2,1] -- Just ([2,1]) init [1,2,3] -- Just ([1,2]) last [3,2,1] -- Just (1) --- Random access - indexing +-- Array access - indexing [3,4,5,6,7] !! 2 -- Just (5) -- Range 1..5 -- [1,2,3,4,5] -- cgit v1.2.3 From b37867fe6e00b215ee4d99788deb605b29c72539 Mon Sep 17 00:00:00 2001 From: Kris Jenkins Date: Mon, 20 Mar 2017 17:20:21 +0100 Subject: Updating the PureScript string concatenation eg. (#2686) https://github.com/purescript/purescript/wiki/Differences-from-Haskell ...says: > Since 0.9.1, the Prelude library does not contain (++) as a second alias for append / (<>) (mappend in Haskell) anymore. So: ``` -- Concatenate "such " ++ "amaze" -- "such amaze" ``` ...should read: ``` -- Concatenate "such " <> "amaze" -- "such amaze" ``` --- purescript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'purescript.html.markdown') diff --git a/purescript.html.markdown b/purescript.html.markdown index 19346760..9ea84d5b 100644 --- a/purescript.html.markdown +++ b/purescript.html.markdown @@ -65,7 +65,7 @@ true && (9 >= 19 || 1 < 2) -- true """Hello world""" -- "Hello\nworld" -- Concatenate -"such " ++ "amaze" -- "such amaze" +"such " <> "amaze" -- "such amaze" -- -- 2. Arrays are Javascript arrays, but must be homogeneous -- cgit v1.2.3