Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2990: Improve scripts for haskell-language-server and ghci r=rvl a=rvl It now generates a custom HLS config on the fly. Instructions are in `hie-direnv.yaml`. ### Issue Number ADP-1229 Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
- Loading branch information
Showing
28 changed files
with
804 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
######################################################################## | ||
# Custom configuration for haskell-language-server. | ||
# | ||
# Use this instead of the default Stack cradle if you want faster | ||
# reloads and cross-package jump-to-definition. | ||
# | ||
# It requires nix-direnv and your editor must have direnv integration. | ||
# | ||
# To use it, symlink hie-direnv.yaml to hie.yaml. | ||
# Then prepare your environment: | ||
# 1. $ direnv allow | ||
# (this will build and cache the nix-shell) | ||
# 2. $ cabal configure --enable-tests --enable-benchmarks -O0 | ||
# (this will provide the build plan which is the basis of the cradle) | ||
# 3. $ cabal build all | ||
# (this will build the Cabal autogen Paths_ modules) | ||
# | ||
# Test your configuration with commands such as: | ||
# $ hie-bios check lib/core/src/Cardano/Wallet.hs | ||
# $ haskell-language-server lib/shelley/exe/cardano-wallet.hs | ||
# | ||
# See https://github.com/haskell/hie-bios for information about the | ||
# cradle yaml config format. | ||
######################################################################## | ||
|
||
cradle: | ||
bios: | ||
program: "./scripts/hie-bios.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,6 @@ test-suite unit | |
hs-source-dirs: | ||
test/unit | ||
main-is: | ||
Main.hs | ||
cli-unit-test.hs | ||
other-modules: | ||
Cardano.CLISpec |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.