Skip to content

Commit 4fb5b1d

Browse files
mbbx6sppSusan Potter
andauthored
Replace outdated references to Pulp with Spago in PSCi Guide (#295)
* Remove outdated references to bower and pulp * Remove installation of psci-support since resolved in purescript/spago#174 * Replace more references to psci command to 'spago repl' or 'purs repl' depending on context Co-authored-by: Susan Potter <[email protected]>
1 parent 38abe5d commit 4fb5b1d

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

guides/PSCi.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@ PSCi "PureScript Interactive" is the REPL for PureScript. It is often a good way
22

33
## Getting Started
44

5-
Use Pulp to configure and start PSCi:
5+
Use Spago to configure and start PSCi:
66

77
```text
8-
$ npm install -g pulp # Install pulp
8+
$ npm install -g spago # Install Spago
99
10-
$ cd my-project # Enter an empty folder
10+
$ cd my-project # Enter an empty folder
1111
12-
$ pulp init # Initialize a pulp environment
12+
$ spago init # Initialize a Spago environment
1313
14-
$ pulp repl # Fire up the interpreter psci
14+
$ spago repl # Fire up the interpreter psci
1515
16-
PSCi, version 0.9.1
16+
...
17+
PSCi, version 0.13.6
1718
Type :? for help
1819
20+
import Prelude
21+
1922
> "hello"
2023
"hello"
2124
@@ -24,7 +27,7 @@ Type :? for help
2427
> 1 + 2 * 3
2528
7
2629
27-
> import Control.Monad.Eff.Console
30+
> import Effect.Console
2831
2932
> log "print this to the screen"
3033
print this to the screen
@@ -71,24 +74,24 @@ Enter `:paste` (or `:pa`) to enter multi-line (or "paste") mode. Terminate it wi
7174
## `purescript-psci-support`
7275

7376
```text
74-
$ psci
75-
76-
PSCi requires the purescript-psci-support package to be installed.
77-
You can install it using Bower as follows:
77+
$ spago repl
7878
79-
bower i purescript-psci-support --save-dev
79+
PSCi requires the `purescript-psci-support` package to be installed.
80+
You can install it using Spago by adding `"psci-support"` to the list of dependencies in `spago.dhall`.
8081
8182
For help getting started, visit http://wiki.purescript.org/PSCi
8283
```
8384

84-
The PureScript compiler suite (i.e. the executable `purs`), unlike most compilers, does not ship with a standard library. In PureScript, even `Prelude` is a normal module, just like any other. Consequentially, `psci` requires a specific library to be installed in order to be able to evaluate terms in the REPL.
85+
The PureScript compiler suite (i.e. the executable `purs`), unlike most compilers, does not ship with a standard library. In PureScript, even `Prelude` is a normal module, just like any other. Consequentially, `purs repl` requires a specific library to be installed in order to be able to evaluate terms in the REPL.
8586

8687
`purescript-psci-support` defines the `Eval` type class for this purpose. Instances of `Eval` are provided for `Show`able types, and for `Eff`, so that we can evaluate actions in the REPL. Library implementors might like to provide `Eval` instances for their own `Eff`-like types.
8788

88-
## PSCi Without Pulp
89+
## PSCi Without Spago
8990

9091
PSCi can be run directly, by specifying a list of PureScript source files as globs:
9192

92-
psci 'src/**/*.purs' 'bower_components/purescript-*/src/**/*.purs'
93+
purs repl 'src/**/*.purs' 'path/to/packages/**/*.purs'
94+
95+
This expects you to have downloaded the PureScript sources for your dependencies (include `psci-support`) under the path `path/to/packages`.
9396

9497
Note the single quotes—the purescript compiler itself knows how to expand globs (`*`) and recursive globs (`**`), single quotes prevent your shell from expanding them. (Bash for example doesn’t have recursive globbing enabled by default; don’t forget the single quotes.)

0 commit comments

Comments
 (0)