Skip to content

Commit 40da4c0

Browse files
committed
root hie.yaml sp lsp can handle monorepo
1 parent 2187c9c commit 40da4c0

File tree

7 files changed

+50
-8
lines changed

7 files changed

+50
-8
lines changed

.github/workflows/haskell.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ jobs:
5252
uses: input-output-hk/actions/base@latest
5353
with:
5454
use-sodium-vrf: true
55+
- name: Add LMDB to Nix environment
56+
run: |
57+
nix-env -f '<nixpkgs>' -iA lmdb
58+
LMDB_STORE=$(find /nix/store -maxdepth 1 -name '*lmdb*-dev' -type d | head -1)
59+
echo "LMDB dev store path: $LMDB_STORE"
60+
if [ -n "$LMDB_STORE" ]; then
61+
ls -la "$LMDB_STORE/lib/pkgconfig/" || echo "No pkgconfig dir"
62+
echo "PKG_CONFIG_PATH=${LMDB_STORE}/lib/pkgconfig:$PKG_CONFIG_PATH" >> $GITHUB_ENV
63+
fi
64+
shell: devx {0}
65+
- name: Verify LMDB availability
66+
run: |
67+
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH"
68+
pkg-config --exists lmdb && echo "LMDB found by pkg-config" || echo "LMDB NOT found by pkg-config"
69+
pkg-config --modversion lmdb || true
70+
shell: devx {0}
5571
- name: cache cabal
5672
uses: actions/cache@v3
5773
with:

cabal.project

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ constraints:
7474
-- code,`Data.Text` is being imported unqualified (bad idea IMO) which
7575
-- then clashes with the `show` in `Prelude`.
7676
, text < 2.1.2
77+
, typed-protocols < 1.1
7778

7879
if impl (ghc >= 9.12)
7980
allow-newer:

cardano-chain-gen/hie.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

cardano-db-sync/hie.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

cardano-db-tool/hie.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

cardano-smash-server/hie.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

hie.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
cradle:
2+
cabal:
3+
# cardano-db
4+
- path: "./cardano-db/src"
5+
component: "lib:cardano-db"
6+
- path: "./cardano-db/test"
7+
component: "cardano-db:test:test"
8+
9+
# cardano-db-sync
10+
- path: "./cardano-db-sync/src"
11+
component: "lib:cardano-db-sync"
12+
- path: "./cardano-db-sync/app"
13+
component: "exe:cardano-db-sync"
14+
- path: "./cardano-db-sync/test"
15+
component: "cardano-db-sync:test:test"
16+
17+
# cardano-db-tool
18+
- path: "./cardano-db-tool/src"
19+
component: "lib:cardano-db-tool"
20+
- path: "./cardano-db-tool/app"
21+
component: "exe:cardano-db-tool"
22+
23+
# cardano-smash-server
24+
- path: "./cardano-smash-server/src"
25+
component: "lib:cardano-smash-server"
26+
- path: "./cardano-smash-server/app"
27+
component: "exe:cardano-smash-server"
28+
29+
# cardano-chain-gen
30+
- path: "./cardano-chain-gen/src"
31+
component: "lib:cardano-chain-gen"
32+
- path: "./cardano-chain-gen/test"
33+
component: "cardano-chain-gen:test:cardano-chain-gen"

0 commit comments

Comments
 (0)