File tree 2 files changed +7
-6
lines changed
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -168,31 +168,31 @@ Dynamically linked binaries (including`ghci`) use the system linker instead of t
168
168
The easiest way to obtain a dynamically linked HLS binary is to build it locally. With ` cabal ` this can be done as follows:
169
169
170
170
``` bash
171
- cabal update && cabal install pkg:haskell-language-server --ghc-options= " -dynamic "
171
+ cabal update && cabal install pkg:haskell-language-server"
172
172
` ` `
173
173
174
174
If you are compiling with a ghc version with a specific ` cabal-ghc${ghcVersion} .project` in the repo you will have to use it. For example for ghc-9.0.x:
175
175
176
176
` ` ` bash
177
- cabal update && cabal install pkg:haskell-language-server --project-file=cabal-ghc90.project --ghc-options= " -dynamic "
177
+ cabal update && cabal install pkg:haskell-language-server --project-file=cabal-ghc90.project"
178
178
```
179
179
180
- With ` stack ` you also need add the ghc option ` -dynamic ` .
180
+ Or with ` stack ` :
181
181
182
182
``` bash
183
- stack install haskell-language-server --stack-yaml=stack-${ghcVersion} .yaml --ghc-options= " -dynamic "
183
+ stack install haskell-language-server --stack-yaml=stack-${ghcVersion} .yaml"
184
184
` ` `
185
185
186
186
You also can leverage ` ghcup compile hls` :
187
187
188
188
` ` ` bash
189
- ghcup compile hls -g master --ghc 8.10.7 -- --ghc-options= " -dynamic "
189
+ ghcup compile hls -v 1.6.1.0 --ghc 8.10.7
190
190
` ` `
191
191
192
192
as it uses cabal underneath you might need to use a specific cabal.project for some ghc versions:
193
193
194
194
` ` ` bash
195
- ghcup compile hls -g master --ghc 9.0.2 --project-file cabal-ghc90.project -- --ghc-options= " -dynamic "
195
+ ghcup compile hls -v 1.6.1.0 --ghc 9.0.2 --cabal-project cabal-ghc90.project
196
196
` ` `
197
197
198
198
# ## Preprocessors
Original file line number Diff line number Diff line change @@ -354,6 +354,7 @@ executable haskell-language-server
354
354
other-modules : Plugins
355
355
356
356
ghc-options :
357
+ -dynamic
357
358
-threaded
358
359
-- allow user RTS overrides
359
360
-rtsopts
You can’t perform that action at this time.
0 commit comments