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: site/get-started.markdown
+18-15
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,10 @@ isGettingStarted: true
5
5
---
6
6
7
7
# Get started
8
-
Welcome, new Haskeller! Read on to quickly set up your Haskell dev environment, execute your first lines of code, and get directions for further learning!
8
+
9
+
Welcome, new Haskeller!
10
+
11
+
Read on to quickly set up your Haskell dev environment, execute your first lines of code, and get directions for further learning.
9
12
10
13
## Content
11
14
-[Set up Haskell dev environment](#set-up-haskell-dev-environment)
@@ -18,42 +21,42 @@ Welcome, new Haskeller! Read on to quickly set up your Haskell dev environment,
18
21
19
22
## Set up Haskell dev environment
20
23
21
-
Complete Haskell dev environment consists of Haskell toolchain (compiler, language server, build tool) and editor with good haskell support. The quickest way to get this set up is to:
24
+
A complete Haskell dev environment consists of the Haskell toolchain (compiler, language server, build tool) and an editor with good Haskell support. The quickest way to get this set up is to:
22
25
23
-
1. Use GHCup to install and manage Haskell toolchain.
24
-
2. Use VSCode as the editor, with the Haskell extension installed.
26
+
1. Use **GHCup** to install and manage Haskell toolchain.
27
+
2. Use **VSCode** as the editor, with the Haskell extension installed.
25
28
26
29
### GHCup: universal installer
27
30
28
31
[GHCup](https://www.haskell.org/ghcup/#) is a universal installer for Haskell that will install for you everything you need to program in Haskell, and then will also help you manage those installations in the future (update, switch versions, ...).
29
32
30
-
Follow instructions at [GHCup webpage](https://www.haskell.org/ghcup/#) to install GHCup. Then, use it to install the Haskell Toolchain, which consists of:
33
+
Follow the instructions on the [GHCup webpage](https://www.haskell.org/ghcup/#) to install GHCup. Then use it to install the Haskell Toolchain, which consists of:
31
34
32
-
1.**GHC** -> Haskell compiler. We will use it below to run our examples, but in practice, you will mostly be using a build tool like `cabal` or `Stack` to build your code, instead of `GHC` directly.
33
-
2.**HLS** -> Haskell Language Server -> You won't use this directly, instead your code editor will use it in the background to provide you with a great experience while editing Haskell code.
34
-
3.**cabal** -> Haskell build tool -> You will use this to structure your Haskell projects, build them, run them, define dependencies, ...
35
-
4.**Stack** -> Haskell build tool -> alternative to `cabal`
35
+
1.**GHC** -> The Haskell compiler -> We will use it below to run our examples, but in practice, you will mostly be using a build tool like Cabal or Stack to build your code, instead of GHC directly.
36
+
2.**HLS** -> The Haskell Language Server -> You won't use this directly, instead your code editor will use it in the background to provide you with a great experience while editing Haskell code.
37
+
3.**Cabal** -> A Haskell build tool -> You will use this to structure your Haskell projects, build them, run them, define dependencies, ... .
38
+
4.**Stack** -> A Haskell build tool -> An alternative to Cabal.
36
39
37
40
38
41
<divclass="bs-callout bs-callout-info">
39
42
<p>
40
-
<h4>cabal and Stack -> which one should I install?</h4>
41
-
We recommend installing both. Most Haskell projects can be built using Cabal, but some might require Stack. Installing both guarantees that you can use either, and while following the tutorial/book you can use whatever they recommend.
43
+
<h4>Cabal and Stack -> which one should I install?</h4>
44
+
We recommend installing both. Most Haskell projects can be built using Cabal, but some might require Stack. Installing both guarantees that you can use either, and while following a tutorial or book you can use whatever they recommend.
42
45
</p>
43
46
</div>
44
47
45
48
### Editor
46
-
**Visual Studio Code** is a popular choice with wellsupported editor integration. Install the [Haskell extension](https://marketplace.visualstudio.com/items?itemName=haskell.haskell) and you are all set. It should work out of the box and use your installation of HLS.
49
+
**Visual Studio Code** is a popular choice with well-supported Haskell integration. Install the [Haskell extension](https://marketplace.visualstudio.com/items?itemName=haskell.haskell) and you are all set. It should work out of the box and use your installation of HLS.
47
50
48
51
To learn about support for other editors, check out [HLS docs for editor configuration](https://haskell-language-server.readthedocs.io/en/latest/configuration.html#configuring-your-editor).
49
52
50
-
## Running first lines of code
53
+
## Running your first lines of code
51
54
52
55
We have everything set up, let's use it!
53
56
54
-
`GHC` brings an interactive interpreter called `GHCi` together with it, which is great for playing with Haskell and trying things out, so let's give it a spin.
57
+
The Haskell compiler, GHC, comes with an interactive interpreter called GHCi which is great for playing with Haskell and trying things out, so let's give it a spin.
55
58
56
-
Run `ghci`, which should start a new prompt for you.
59
+
Run `ghci` at your command prompt, which will start a new GHCi prompt for you.
57
60
58
61
Let's do a simple calculation to check Haskell's computing capabilities:
0 commit comments