Skip to content

Commit 1f75e16

Browse files
authored
Merge pull request #163 from cherryblossom000/haskell-installation
haskell installation fix
2 parents 80ab27c + ac54eaa commit 1f75e16

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

_chapters/haskell0.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ We will be installing the following tools:
9898
To do this, run
9999

100100
``` sh
101-
ghcup install --set stack 3.7.1
102-
ghcup install --set hls 2.11.0.0
101+
ghcup install stack 3.7.1 --set
102+
ghcup install hls 2.11.0.0 --set
103103
```
104104

105105
Alternatively, GHCup comes with a convenient TUI (terminal user interface):
@@ -176,6 +176,17 @@ These may take a while to install, so if you’re installing Haskell during your
176176
- Install with `stack install hlint`
177177
- Ensure the ‘Haskell › Plugin › Hlint: Diagnostics On’ (`haskell.plugin.hlint.diagnosticsOn`) setting in VS Code is enabled, which should be the default
178178

179+
If you get an error relating to mismatched versions, try running the `stack install` commands inside the folder where `stack.yaml` is located. Alternatively, edit the file
180+
181+
- Windows: `%AppData%\stack\global-project\stack.yaml`
182+
- Non-Windows: `~/.stack/global-project/stack.yaml`
183+
184+
and change the `resolver` to
185+
186+
```yml
187+
resolver: lts-23.25
188+
```
189+
179190
## Troubleshooting
180191
181192
### Windows Issues

0 commit comments

Comments
 (0)