Skip to content

Commit f79967b

Browse files
Fix cabal install commands for local HLS build (#2807)
The existing command errors: $ cabal install pkg:haskell-language-server cabal: Internal error in target matching. It should always be possible to find a syntax that's sufficiently qualified to give an unambiguous match. However when matching 'pkg:haskell-language-server' we found haskell-language-server (named-package) which does not have an unambiguous syntax. The possible syntax and the targets they match are as follows: 'haskell-language-server' which matches haskell-language-server (named-package) 'pkg:haskell-language-server' which matches haskell-language-server (named-package), pkg:haskell-language-server (unknown-component), :pkg:pkg:lib:pkg:file:haskell-language-server (unknown-file) ':pkg:haskell-language-server' which matches haskell-language-server (named-package) Co-authored-by: Pepe Iborra <pepeiborra@gmail.com>
1 parent dda3e5e commit f79967b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/troubleshooting.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ Dynamically linked binaries (including`ghci`) use the system linker instead of t
168168
The easiest way to obtain a dynamically linked HLS binary is to build HLS locally. With `cabal` this can be done as follows:
169169

170170
```bash
171-
cabal update && cabal install pkg:haskell-language-server
171+
cabal update && cabal install :pkg:haskell-language-server
172172
```
173173

174174
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:
175175

176176
```bash
177-
cabal update && cabal install pkg:haskell-language-server --project-file=cabal-ghc90.project
177+
cabal update && cabal install :pkg:haskell-language-server --project-file=cabal-ghc90.project
178178
```
179179

180180
Or with `stack`:

0 commit comments

Comments
 (0)