You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn/getting-started/index.html
+5-3
Original file line number
Diff line number
Diff line change
@@ -34,13 +34,15 @@ <h2>Menu</h2>
34
34
<sectionclass="article">
35
35
36
36
<h2>Getting Started with PureScript</h2>
37
-
<divclass="meta">By Phil Freeman, updated 12 July 2015</div>
37
+
<divclass="meta">By Phil Freeman, updated 13 December 2015</div>
38
38
39
39
<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>
40
40
<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 <ahref="http://projecteuler.net/problem=1">Project Euler</a>.</p>
41
41
<h4id="installing-the-compiler">Installing the Compiler</h4>
42
-
<p>PureScript can be installed from <ahref="http://hackage.haskell.org/package/purescript">Hackage</a> or by downloading the latest <ahref="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 <ahref="https://docs.npmjs.com/getting-started/installing-node">Node.js and npm</a> and to be <ahref="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 <ahref="http://hackage.haskell.org/package/purescript">Hackage</a>, or by downloading the latest <ahref="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>
44
46
<h4id="setting-up-the-development-environment">Setting up the Development Environment</h4>
45
47
<p>PureScript's core libraries are configured to use the Pulp build tool, and packages are available in the Bower registry.</p>
46
48
<p>If you don't have Pulp installed, install it now:</p>
Copy file name to clipboardExpand all lines: learn/getting-started/index.markdown
+11-5
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,21 @@ Welcome to the PureScript community blog! In this first post, I'm going to walk
2
2
3
3
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).
4
4
5
+
5
6
#### Installing the Compiler
6
7
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`.)
8
15
9
-
Make sure the `psc` executable is on your path.
10
16
11
17
#### Setting up the Development Environment
12
18
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-).
14
20
15
21
If you don't have Pulp installed, install it now:
16
22
@@ -45,11 +51,11 @@ If everything was built successfully, and the tests ran without problems, then t
45
51
46
52
Dependencies can be installed using Bower, if you have it installed globally:
0 commit comments