Skip to content

Commit 72405d3

Browse files
committed
Tweaks the "Getting Started" post to make it easier to get going with the purescript compiler.
1 parent 5e07660 commit 72405d3

File tree

2 files changed

+16
-8
lines changed

2 files changed

+16
-8
lines changed

learn/getting-started/index.html

+5-3
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ <h2>Menu</h2>
3434
<section class="article">
3535

3636
<h2>Getting Started with PureScript</h2>
37-
<div class="meta">By Phil Freeman, updated 12 July 2015</div>
37+
<div class="meta">By Phil Freeman, updated 13 December 2015</div>
3838

3939
<p>Welcome to the PureScript community blog! In this first post, I'm going to walk through the basics of getting set up to use the PureScript compiler <code>psc</code>, and its interactive mode <code>psci</code>.</p>
4040
<p>I'll start with the installation of the compiler, go through the basic commands of <code>psc</code> and <code>psci</code>, working towards a solution of problem 1 from <a href="http://projecteuler.net/problem=1">Project Euler</a>.</p>
4141
<h4 id="installing-the-compiler">Installing the Compiler</h4>
42-
<p>PureScript can be installed from <a href="http://hackage.haskell.org/package/purescript">Hackage</a> or by downloading the latest <a href="https://github.com/purescript/purescript/releases">binary bundle</a> for your OS.</p>
43-
<p>Make sure the <code>psc</code> executable is on your path.</p>
42+
<p>You'll need <a href="https://docs.npmjs.com/getting-started/installing-node">Node.js and npm</a> and to be <a href="https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-1-change-the-permission-to-npm-s-default-directory">able to install global packages</a> to proceed.</p>
43+
<p>The Purescript compiler (psc) can be installed with npm:</p>
44+
<pre><code>npm install -g purescript</code></pre>
45+
<p>(It can also be installed from <a href="http://hackage.haskell.org/package/purescript">Hackage</a>, or by downloading the latest <a href="https://github.com/purescript/purescript/releases">binary bundle</a> for your OS. If you do so, make sure the <code>psc</code> executable is on your <code>$PATH</code>.</p>
4446
<h4 id="setting-up-the-development-environment">Setting up the Development Environment</h4>
4547
<p>PureScript's core libraries are configured to use the Pulp build tool, and packages are available in the Bower registry.</p>
4648
<p>If you don't have Pulp installed, install it now:</p>

learn/getting-started/index.markdown

+11-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@ Welcome to the PureScript community blog! In this first post, I'm going to walk
22

33
I'll start with the installation of the compiler, go through the basic commands of `psc` and `psci`, working towards a solution of problem 1 from [Project Euler](http://projecteuler.net/problem=1).
44

5+
56
#### Installing the Compiler
67

7-
PureScript can be installed from [Hackage](http://hackage.haskell.org/package/purescript) or by downloading the latest [binary bundle](https://github.com/purescript/purescript/releases) for your OS.
8+
You'll need [Node.js and npm](https://docs.npmjs.com/getting-started/installing-node) and to be [able to install global packages](https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-1-change-the-permission-to-npm-s-default-directory) to proceed.
9+
10+
The Purescript compiler (psc) can be installed with npm:
11+
12+
npm install -g purescript
13+
14+
(It can also be installed from [Hackage](http://hackage.haskell.org/package/purescript), or by downloading the latest [binary bundle](https://github.com/purescript/purescript/releases) for your OS. If you do so, make sure the `psc` executable is on your `$PATH`.)
815

9-
Make sure the `psc` executable is on your path.
1016

1117
#### Setting up the Development Environment
1218

13-
PureScript's core libraries are configured to use the Pulp build tool, and packages are available in the Bower registry.
19+
PureScript's core libraries are configured to use the [Pulp](https://github.com/bodil/pulp) build tool, and packages are available in the [Bower registry](http://bower.io/search/?q=purescript-).
1420

1521
If you don't have Pulp installed, install it now:
1622

@@ -45,11 +51,11 @@ If everything was built successfully, and the tests ran without problems, then t
4551

4652
Dependencies can be installed using Bower, if you have it installed globally:
4753

48-
bower i purescript-lists --save
54+
bower install purescript-lists --save
4955

5056
If you want to use Pulp, you can run `pulp dep`:
5157

52-
pulp dep i purescript-lists --save
58+
pulp dep install purescript-lists --save
5359

5460
#### Working in PSCI
5561

0 commit comments

Comments
 (0)