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 From 9a32aeaa888e74d6ed169bfe00a9af46226e640d Mon Sep 17 00:00:00 2001 From: Pratik Karki Date: Fri, 25 Aug 2017 14:01:44 +0545 Subject: Add filename(#2832) --- purescript.html.markdown | 1 + 1 file changed, 1 insertion(+) (limited to 'purescript.html.markdown') diff --git a/purescript.html.markdown b/purescript.html.markdown index 9ea84d5b..df0cb66e 100644 --- a/purescript.html.markdown +++ b/purescript.html.markdown @@ -1,5 +1,6 @@ --- language: purescript +filename: purescript.purs contributors: - ["Fredrik Dyrkell", "http://www.lexicallyscoped.com"] - ["Thimoteus", "https://github.com/Thimoteus"] -- cgit v1.2.3 From 2d1461d27fc9f23eae15062c9f799b23e86876cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C4=B1l=20Anar?= Date: Wed, 3 Oct 2018 15:21:23 +0200 Subject: Fix purescript array of ints/numbers Fixes #2026. --- purescript.html.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'purescript.html.markdown') diff --git a/purescript.html.markdown b/purescript.html.markdown index df0cb66e..6b74ac64 100644 --- a/purescript.html.markdown +++ b/purescript.html.markdown @@ -71,7 +71,8 @@ world""" -- "Hello\nworld" -- -- 2. Arrays are Javascript arrays, but must be homogeneous -[1,1,2,3,5,8] :: Array Number -- [1,1,2,3,5,8] +[1,1,2,3,5,8] :: Array Int -- [1,1,2,3,5,8] +[1.2,2.0,3.14] :: Array Number -- [1.2,2.0,3.14] [true, true, false] :: Array Boolean -- [true,true,false] -- [1,2, true, "false"] won't work -- `Cannot unify Prim.Int with Prim.Boolean` -- cgit v1.2.3