mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-12 09:44:24 +02:00
Replace PSCi multi-line mode with paste mode
* Multi-line mode has been replaced with past mode
This commit is contained in:
@@ -12,8 +12,9 @@ PureScript is a small strongly, statically typed language compiling to JavaScrip
|
|||||||
* Documentation: [https://pursuit.purescript.org/](https://pursuit.purescript.org/)
|
* Documentation: [https://pursuit.purescript.org/](https://pursuit.purescript.org/)
|
||||||
* Book: Purescript by Example, [https://book.purescript.org/](https://book.purescript.org/)
|
* Book: Purescript by Example, [https://book.purescript.org/](https://book.purescript.org/)
|
||||||
|
|
||||||
All the noncommented lines of code can be run in the PSCI REPL, though some will
|
All the noncommented lines of code can be run in the PSCi REPL, though some
|
||||||
require the `--multi-line-mode` flag.
|
will require "paste" mode (`:paste` followed by multiple lines, terminated by
|
||||||
|
^D).
|
||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
|
|
||||||
@@ -59,7 +60,7 @@ true && (9 >= 19 || 1 < 2) -- true
|
|||||||
|
|
||||||
-- Strings
|
-- Strings
|
||||||
"Hellow" :: String -- "Hellow"
|
"Hellow" :: String -- "Hellow"
|
||||||
-- Multiline string without newlines, to run in psci use the --multi-line-mode flag
|
-- Multiline string without newlines, to run in PSCi use "paste" mode.
|
||||||
"Hellow\
|
"Hellow\
|
||||||
\orld" -- "Helloworld"
|
\orld" -- "Helloworld"
|
||||||
-- Multiline string with newlines
|
-- Multiline string with newlines
|
||||||
|
Reference in New Issue
Block a user