-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nhm-tool: use cradle bios in generated hie.yaml
the bios shell script returns an error message with advice to run make env if GHC environment file (technically, a symbolic link to this file) is missing, the new approach was implemented in examples/labeledMediaRouting and haskell/ngx-export-distribution/test
- Loading branch information
Showing
9 changed files
with
80 additions
and
23 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
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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
cradle: | ||
direct: | ||
arguments: ["-Wall", "-O2"] | ||
bios: | ||
shell: | | ||
if [ -L .ghc.environment.lnk ] | ||
then | ||
echo -e "\x2dWall\n\x2dO2" > $HIE_BIOS_OUTPUT | ||
else | ||
echo -n "Ghc environment file wasn't found, "` | ||
`"run \"make env\" and restart language server." >&2 | ||
exit 1 | ||
fi | ||
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
cradle: | ||
direct: | ||
arguments: ["-Wall", "-O2", "LabeledMediaRouter.hs"] | ||
bios: | ||
shell: | | ||
if [ -L .ghc.environment.lnk ] | ||
then | ||
echo -e "\x2dWall\n\x2dO2\nLabeledMediaRouter.hs" > \ | ||
$HIE_BIOS_OUTPUT | ||
else | ||
echo -n "Ghc environment file wasn't found, "` | ||
`"run \"make env\" and restart language server." >&2 | ||
exit 1 | ||
fi | ||
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
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
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 |
---|---|---|
@@ -1,4 +1,12 @@ | ||
cradle: | ||
direct: | ||
arguments: ["-Wall", "-O2"] | ||
bios: | ||
shell: | | ||
if [ -L .ghc.environment.lnk ] | ||
then | ||
echo -e "\x2dWall\n\x2dO2" > $HIE_BIOS_OUTPUT | ||
else | ||
echo -n "Ghc environment file wasn't found, "` | ||
`"run \"make env\" and restart language server." >&2 | ||
exit 1 | ||
fi | ||
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 |
---|---|---|
|
@@ -17,3 +17,6 @@ library | |
|
||
ghc-options: -Wall -O2 -no-keep-hi-files -no-keep-o-files | ||
|
||
if impl(ghc >= 9.0.1) | ||
ghc-options: -threaded | ||
|