Skip to content

Commit a0e333b

Browse files
authored
Update haskell-stack-notes.md
1 parent 0dab677 commit a0e333b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

resources/haskell-stack-notes.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Installation
44

5+
**Do not ever install the Haskell Platform!**
6+
7+
Install the Haskell language compiler, REPL, and build tool using [Stack](https://docs.haskellstack.org/en/stable/README/).
8+
59
Visit the [Get Started page on haskell-lang.org](https://haskell-lang.org/get-started) or read the [Stack documentation](https://docs.haskellstack.org/en/stable/README/) for the most up-to-date instructions for installing Haskell using the Stack platform. Avoid using other installation solutions, including any variant of the Haskell Platform.
610

711
On other Unix and Unix-like systems, you can generally install directly by using one of the following commands:
@@ -27,23 +31,22 @@ To set up a full project, enter the following commands:
2731

2832
1. `stack new project-name` where `project-name` is whatever you want to call your project
2933
2. `cd project-name` to switch to the new directory that Stack will have created for your project
30-
3. `stack setup` to create a basic project framework
31-
4. `stack build` to compile the project
32-
5. `stack exec project-name-exe` to run the compiled output
34+
3. `stack build` to compile the project
35+
4. `stack exec project-name-exe` to run the compiled output
3336

3437
## Upgrading Stack or GHC
3538

3639
- `stack update` will update your packages, but you don't generally need to do this manually.
3740
- `stack upgrade` will reinstall Stack from source, including GHC.
3841
- `stack config set resolver lts` will update Stack (globally or locally within a project) to the latest LTS
39-
- `stack config set resolver lts-9.3` will set Stack to use a specific LTS
42+
- `stack config set resolver lts-11.3` will set Stack to use a specific LTS
4043
- `stack exec -- ghc --version` will tell you what version of GHC you are using.
4144

4245
If you want to use a specific version of GHC for your global Stack installation, edit your `~/.stack/global-project/stack.yaml` file, and set the resolver to whichever version prefer, for example:
4346

4447
- `resolver: lts-6.11` for GHC 7.10.3
45-
- `resolver: lts-7.16` for GHC 8.0.1
4648
- `resolver: lts-9.5` for GHC 8.0.2
49+
- `resolver: lts-11.3` for GHC 8.2.2
4750

4851
For project-specific installations of Stack, edit your project's local `stack.yaml` file instead.
4952

0 commit comments

Comments
 (0)