Skip to content

Commit

Permalink
Installation from Hackage - add README section (#1183)
Browse files Browse the repository at this point in the history
* Installation from Hackage - add README section

* Discourage direct installation from Hackage

* remove random whitespace

Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 10, 2021
1 parent 8aa45ea commit 2ef6ff0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ background](https://neilmitchell.blogspot.com/2020/01/one-haskell-ide-to-rule-th
- [Building](#building)
- [Install via cabal](#install-via-cabal)
- [Install specific GHC Version](#install-specific-ghc-version)
- [Installation from Hackage](#installation-from-hackage)
- [Configuring haskell-language-server](#configuring-haskell-language-server)
- [Configuring your project build](#configuring-your-project-build)
- [Configuring your editor](#configuring-your-editor)
Expand Down Expand Up @@ -245,6 +246,12 @@ If your desired ghc has been found, you use it to install haskell-language-serve
./cabal-hls-install hls-8.6.5
```

### Installation from Hackage

Direct installation from Hackage, while possible via `cabal install haskell-language-server`, is not recommended for most people.
Said command builds the `haskell-language-server` binary and installs it in the default Cabal binaries folder,
but the binary will only work with projects that use the same GHC version that built it.

## Configuring `haskell-language-server`

Language servers like `haskell-language-server` expose most of their configuration via the client (i.e. the editor).
Expand Down

0 comments on commit 2ef6ff0

Please sign in to comment.