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
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,11 @@ Welcome, new Haskeller! Read on to quickly set up your Haskell dev environment,
18
18
19
19
## Set up Haskell dev environment
20
20
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:
22
+
23
+
1. Use GHCup to install and manage Haskell toolchain.
24
+
2. Use VSCode as the editor, with the Haskell extension installed.
25
+
21
26
### GHCup: universal installer
22
27
23
28
[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, ...).
@@ -40,7 +45,7 @@ Follow instructions at [GHCup webpage](https://www.haskell.org/ghcup/#) to insta
40
45
### Editor
41
46
**Visual Studio Code** is a popular choice with well supported 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.
42
47
43
-
Of other editors that have good Haskell extensions, the most popular ones are Vim and Emacs.
48
+
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).
44
49
45
50
## Running first lines of code
46
51
@@ -79,7 +84,7 @@ Write the following in it:
79
84
```hs
80
85
main =do
81
86
putStrLn"Hello, everybody!"
82
-
putStrLn ("Please look at my favorite odd numbers: "++filterodd [10..20])
87
+
putStrLn ("Please look at my favorite odd numbers: "++show (filterodd [10..20]))
83
88
```
84
89
85
90
You can now compile it with `ghc`, which will produce `hello` binary that we will then run:
0 commit comments