Skip to content

Commit 5da93e9

Browse files
committed
Update styles and fix some links
1 parent 3819637 commit 5da93e9

File tree

7 files changed

+213
-172
lines changed

7 files changed

+213
-172
lines changed

css/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

download/index.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,21 @@ <h2>Binaries</h2>
4242
<section>
4343
<h2>Package managers</h2>
4444
<p>OS X via <a href="http://brew.sh/">Homebrew</a></p>
45-
<div class="codeblock">
4645
<pre>
4746
brew install purescript
4847
</pre>
49-
</div>
5048
<p>Arch Linux via <a href="https://aur.archlinux.org/packages/purescript-bin/">AUR</a></p>
51-
<div class="codeblock">
5249
<pre>
5350
yaourt -S purescript-bin
5451
</pre>
55-
</div>
5652
<p>Windows via <a href="https://chocolatey.org/">Chocolatey</a></p>
57-
<div class="codeblock">
5853
<pre>
5954
choco install purescript
6055
</pre>
61-
</div>
6256
<p>Every platform via <a href="https://www.npmjs.com/">npm</a></p>
63-
<div class="codeblock">
6457
<pre>
6558
npm install -g purescript
6659
</pre>
67-
</div>
6860
</section>
6961

7062
<section>
@@ -73,12 +65,10 @@ <h2>Cabal</h2>
7365

7466
<p>If you already have the <a href="https://www.haskell.org/platform">Haskell Platform</a> 2014 or <a href="https://www.haskell.org/ghc/">GHC</a> 7.8 installed then PureScript can be installed using Cabal:</p>
7567

76-
<div class="codeblock">
7768
<pre>
7869
cabal update
7970
cabal install purescript
8071
</pre>
81-
</div>
8272

8373
</section>
8474

@@ -88,15 +78,13 @@ <h2>Building from source</h2>
8878

8979
<p>For the most up-to-date (potentially unstable) version of the compiler the code is <a href="https://github.com/purescript/purescript">available on GitHub</a>:</p>
9080

91-
<div class="codeblock">
9281
<pre>
9382
git clone https://github.com/purescript/purescript.git
9483
cd purescript
9584
cabal sandbox init
9685
cabal update
9786
cabal install
9887
</pre>
99-
</div>
10088

10189
<p>The <code>cabal sandbox init</code> step is optional but recommended to avoid problems with dependencies. When using a sandbox <code>cabal install</code> will put the compiled binaries into <code>./.cabal-sandbox/bin/</code> rather than the global Cabal <code>bin</code> directory.</p>
10290

img/bullet.png

247 Bytes
Loading

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ <h2>Menu</h2>
2626
<li><a href="download/">Download</a></li>
2727
<li><a href="learn/">Learn</a></li>
2828
<li><a href="projects/">Projects</a></li>
29-
<li><a href="articles/">Articles</a></li>
3029
</ul>
3130
</nav>
3231
</div>

learn/getting-started/index.html

Lines changed: 97 additions & 96 deletions
Large diffs are not rendered by default.

learn/getting-started/index.markdown

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ 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-
### Installing the Compiler
5+
#### Installing the Compiler
66

77
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.
88

99
Make sure the `psc` executable is on your path.
1010

11-
### Setting up the Development Environment
11+
#### Setting up the Development Environment
1212

1313
PureScript's core libraries are configured to use the Pulp build tool, and packages are available in the Bower registry.
1414

@@ -41,7 +41,7 @@ You should see output similar to the following:
4141

4242
If everything was built successfully, and the tests ran without problems, then the last line should state "Tests OK".
4343

44-
### Installing Dependencies
44+
#### Installing Dependencies
4545

4646
Dependencies can be installed using Bower, if you have it installed globally:
4747

@@ -51,7 +51,7 @@ If you want to use Pulp, you can run `pulp dep`:
5151

5252
pulp dep i purescript-lists --save
5353

54-
### Working in PSCI
54+
#### Working in PSCI
5555

5656
PSCi is the interactive mode of PureScript. It is useful for working with pure computations, and for testing ideas.
5757

@@ -103,7 +103,7 @@ We will be using some of the functions from the `Prelude` and `Data.List` module
103103

104104
Note that using `Tab` to autocomplete names can be a useful time-saving device in `psci`.
105105

106-
### Solving Project Euler #1
106+
#### Solving Project Euler #1
107107

108108
The following problem is taken from [Project Euler](http://projecteuler.net/problem=1):
109109

@@ -145,7 +145,7 @@ When you have finished using PSCi, type `:quit` to quit:
145145
> :quit
146146
See ya!
147147

148-
### Compiling a Solution
148+
#### Compiling a Solution
149149

150150
Now that we've seen how to use `psci` to reach the answer, let's move our solution into a source file, and compile it using `psc`.
151151

@@ -180,7 +180,7 @@ Alternatively, we can use Pulp to compile our new module to Javascript:
180180

181181
This will compile each module present in `src/` into a separate file in the `output/` directory.
182182

183-
### Writing a Test Suite
183+
#### Writing a Test Suite
184184

185185
To test our code, we'll use the `purescript-assert` library:
186186

@@ -203,7 +203,7 @@ Our "test suite" is just a single assertion that the `answer` value equals the c
203203

204204
Run the tests using `pulp test`, and you should hopefully see "Tests OK" in the last line.
205205

206-
### Creating Executables
206+
#### Creating Executables
207207

208208
We can modify the `main` function in the `src/Main.purs` module to print our result to the console:
209209

@@ -225,8 +225,8 @@ The `pulp run` command can be used to compile and run the `Main` module:
225225
* Build successful.
226226
The answer is 233168
227227

228-
### Conclusion
228+
#### Conclusion
229229

230230
That's all for this post. We've seen how to use enough of the basics of `psc` and PSCi to compile, execute and test simple PureScript programs. If you would like more information, the [PureScript documentation](http://docs.purescript.org) lists all of the options for both `psc` and `psci`.
231231

232-
Until next time\...
232+
Until next time...

0 commit comments

Comments
 (0)