diff options
author | Kris Jenkins <krisajenkins@gmail.com> | 2017-03-20 17:20:21 +0100 |
---|---|---|
committer | ven <vendethiel@hotmail.fr> | 2017-03-20 17:20:21 +0100 |
commit | b37867fe6e00b215ee4d99788deb605b29c72539 (patch) | |
tree | 278ca4863d59c1ce9280085ef14685c12104699d /purescript.html.markdown | |
parent | 9e8a3d73b687b3b4ee3558ceef2c1944f7d4051c (diff) |
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"
```
Diffstat (limited to 'purescript.html.markdown')
-rw-r--r-- | purescript.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
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 |