Skip to content

Commit

Permalink
Add information about configuring HLS
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Sep 8, 2023
1 parent 53757df commit 39f7b74
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,12 +598,20 @@ following error about `Stack.Constants.ghcShowOptionsOutput`:
stack exec -- code .
~~~

Consequently, the following
[cradle (`hie.yaml`)](https://github.com/haskell/hie-bios) should suffice to
configure Haskell Language Server (HLS) explicitly:
The following [cradle (`hie.yaml`)](https://github.com/haskell/hie-bios)
should suffice to configure Haskell Language Server (HLS) explicitly for each of
the buildable components in Stack's Cabal file:
~~~yaml
cradle:
stack:
- path: "./src"
component: "stack:lib"
- path: "./app"
component: "stack:exe:stack"
- path: "./tests/integration"
component: "stack:exe:stack-integration-test"
- path: "./tests/unit"
component: "stack:test:stack-unit-test"
~~~

A cradle is not committed to Stack's repository because it imposes a choice of
Expand Down

0 comments on commit 39f7b74

Please sign in to comment.