Skip to content

Commit 06a230c

Browse files
committed
Add info about HLS cradle
1 parent 83110e0 commit 06a230c

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CONTRIBUTING.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ Where again, `<PATTERN>` is the name of the folder listed in the
467467
[test/integration/tests/](https://github.com/commercialhaskell/stack/tree/master/test/integration/tests)
468468
directory.
469469

470-
You can disable a few integration tests through the -n option :
470+
You can disable a few integration tests through the -n option :
471471

472472
~~~text
473473
stack build --flag stack:integration-tests stack --exec "stack-integration-test -n <PATTERN1> -n <PATTERN2>"
@@ -563,6 +563,22 @@ Stan is a Haskell static analysis tool. As of 29 August 2022, it does not
563563
support GHC >= 9.0.1 and Stack is built with GHC >= 9.2.4. Consequently, this
564564
workflow does not run. Its intent is to apply Stan to Stack.
565565

566+
## Haskell Language Server
567+
568+
If you use Stack to build Stack, then you should find that, after having
569+
commanded `stack build`, command `stack ghci` will work as expected.
570+
(`stack build` causes Cabal (the library) to create the automatically generated
571+
module `Stack_build`.) Consequently, the following
572+
[cradle (`hie.yaml`)](https://github.com/haskell/hie-bios) should suffice to
573+
configure Haskell Language Server (HLS) explicitly:
574+
~~~yaml
575+
cradle:
576+
stack:
577+
~~~
578+
579+
A cradle is not committed to Stack's repository because it imposes a choice of
580+
build tool.
581+
566582
## Slack channel
567583

568584
If you're making deep changes and real-time communication with the Stack team

0 commit comments

Comments
 (0)