Skip to content

Commit 30b9187

Browse files
committed
HLS GHA: Add workaround for cabal custom-setup
1 parent 0ed5628 commit 30b9187

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/hls.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,10 @@ jobs:
113113
114114
- name: Test HLS works
115115
if: steps.check_trivial_changes.outputs.CHECK_HLS_WORKS > 0
116-
run: haskell-language-server
116+
run: |
117+
# workaround for https://github.com/haskell/haskell-language-server/issues/3735
118+
cat <<EOF > hie.yaml
119+
cradle:
120+
cabal:
121+
EOF
122+
haskell-language-server

cardano-rpc/Setup.hs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
#!/usr/bin/env cabal
2+
{- cabal:
3+
build-depends: base, Cabal, proto-lens-setup
4+
-}
5+
6+
-- this is a cabal script because of https://github.com/haskell/haskell-language-server/issues/3735
7+
18
import Data.ProtoLens.Setup
29

310
main = defaultMainGeneratingProtos "proto"

0 commit comments

Comments
 (0)