Skip to content

Commit c56de96

Browse files
mpilgremalt-romes
authored andcommitted
Add support for building project packages with Stack
1 parent 0e05cac commit c56de96

5 files changed

Lines changed: 54 additions & 2 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ vscode-extension/dist/
66
vscode-extension/result
77
dist-newstyle/
88
cabal.project.local
9+
10+
# Stack-related
11+
.stack-work
12+
*.yaml.lock

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,28 @@ built-in version in memory.
149149

150150
# Building from source
151151

152-
To build `hdb`:
152+
## Build `hdb` (using Cabal)
153+
153154
```
154155
cabal build -w /path/to/ghc-9.14 exe:hdb
155156
```
156157

157-
To build the VSCode extension
158+
## Build and install `hdb` (using Stack)
159+
160+
On non-Windows operating systems:
161+
162+
```
163+
stack install haskell-debugger
164+
```
165+
166+
On Windows:
167+
168+
```
169+
stack -w stack-windows.yaml install haskell-debugger
170+
```
171+
172+
## Build VS Code extension (using Nix)
173+
158174
```
159175
cd vscode-extension
160176
nix-build

snapshot.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# A bespoke snapshot for GHC 9.14.1. There is no Stackage snapshot for
2+
# GHC 9.14.1.
3+
#
4+
# The relevant package versions in this snapshot are known, by testing, to work
5+
# together, not withstanding the upper bounds on dependencies specified in their
6+
# Cabal files.
7+
snapshot: nightly-2026-01-10 # GHC 9.12.3.
8+
compiler: ghc-9.14.1
9+
10+
# Not in nightly-2026-01-10:
11+
packages:
12+
- dap-0.3.1.0@sha256:2e3f360463bba05cb062e764ae0dd958dba0ad67e83791e0d6d5adb3d259539a,2324
13+
- implicit-hie-0.1.4.0@sha256:42a8bdc36713d98711c59b62fac238d81f6ce3ef7912752f38d456182260a5a3,3122

stack-windows.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Stack project-level configuration for Windows only.
2+
3+
snapshot: snapshot.yaml
4+
5+
packages:
6+
- .
7+
- haskell-debugger-view

stack.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Stack project-level configuration for non-Windows operating systems only.
2+
3+
snapshot: snapshot.yaml
4+
5+
packages:
6+
- .
7+
- haskell-debugger-view
8+
9+
# Applicable only to non-Windows operating systems:
10+
configure-options:
11+
haskell-debugger:
12+
- --enable-executable-dynamic

0 commit comments

Comments
 (0)