-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathhaskell-debugger.cabal
More file actions
311 lines (264 loc) · 11 KB
/
haskell-debugger.cabal
File metadata and controls
311 lines (264 loc) · 11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
cabal-version: 3.12
name: haskell-debugger
version: 0.13.1.0
synopsis:
A step-through debugger for GHC Haskell
description: This package provides a standalone executable
called @hdb@ which can be used to step-through Haskell
programs and can act as a Debug Adapter Protocol (DAP)
server in the @server@ mode for debugging Haskell
programs.
The Debug Adapter is implemented on top of the
@haskell-debugger@ library which defines the primitive
debugging capabilities. These debugger features are
implemented by managing a GHC session and debugging it
through the GHC API.
The @hdb@ is transparently compatible with most projects
because it uses @hie-bios@ to figure out the right flags to
invoke GHC with.
Additional information can be found [in the README](https://github.com/well-typed/haskell-debugger).
license: BSD-3-Clause
license-file: LICENSE
author: Rodrigo Mesquita
maintainer: rodrigo@well-typed.com
-- copyright:
category: Development
build-type: Simple
extra-doc-files: CHANGELOG.md
README.md
-- Make sure to list all files which we embed with TH, so sdist + build works.
extra-source-files: haskell-debugger-view/src/GHC/Debugger/View/Class.hs
haskell-debugger-view/src/GHC/Debugger/View/Containers.hs
haskell-debugger-view/src/GHC/Debugger/View/Text.hs
haskell-debugger-view/src/GHC/Debugger/View/ByteString.hs
haskell-debugger-view/haskell-debugger-view.cabal
haskell-debugger-view/LICENSE
haskell-debugger-view/CHANGELOG.md
-- Should probably be extra extra-files but that requires cabal 3.14
test/golden/**/*.hs
test/golden/**/*.cabal
test/golden/**/*.yaml
test/golden/**/*.project
test/integration/**/*.hs
test/integration/**/*.cabal
test/integration/**/*.yaml
test/integration/**/*.project
test/golden/**/*.hdb-stdin
test/golden/**/*.hdb-stdout
test/golden/**/*.hdb-test
test/golden/**/*.debuggee-stdin
homepage: https://github.com/well-typed/haskell-debugger
bug-reports: https://github.com/well-typed/haskell-debugger/issues
source-repository head
type: git
location: https://github.com/well-typed/haskell-debugger
common warnings
ghc-options: -Wall
-- custom-setup
-- setup-depends:
-- base >= 4.21 && < 5,
-- Cabal-hooks >= 3.14 && < 3.18,
library
import: warnings
exposed-modules: GHC.Debugger,
GHC.Debugger.Breakpoint,
GHC.Debugger.Breakpoint.Map,
GHC.Debugger.Run,
GHC.Debugger.Stopped,
GHC.Debugger.Stopped.Exception,
GHC.Debugger.Stopped.Variables,
GHC.Debugger.Runtime,
GHC.Debugger.Runtime.Eval,
GHC.Debugger.Runtime.Eval.RemoteExpr,
GHC.Debugger.Runtime.Eval.RemoteExpr.Builtin,
GHC.Debugger.Runtime.Instances,
GHC.Debugger.Runtime.Instances.Discover,
GHC.Debugger.Runtime.Compile,
GHC.Debugger.Runtime.Compile.Cache,
GHC.Debugger.Runtime.Term.Parser,
GHC.Debugger.Runtime.Term.Key,
GHC.Debugger.Runtime.Thread,
GHC.Debugger.Runtime.Thread.Stack,
GHC.Debugger.Runtime.Thread.Map,
GHC.Debugger.Runtime.Interpreter.Custom,
GHC.Debugger.Monad,
GHC.Debugger.Utils,
GHC.Debugger.Utils.Orphans,
GHC.Debugger.Session,
GHC.Debugger.Session.Builtin,
GHC.Debugger.Session.Interactive,
GHC.Debugger.Interface.Messages
if impl(ghc >= 9.15)
exposed-modules:
GHC.Debugger.Runtime.Interpreter
default-extensions: CPP
build-depends: base >= 4.22 && < 5,
ghc >= 9.14 && < 9.16, ghci >= 9.14 && < 9.16,
ghc-boot-th >= 9.14 && < 9.16,
ghc-boot >= 9.14 && < 9.16,
ghc-experimental >= 9.1401 && < 9.1600,
ghc-heap >= 9.14 && < 9.16,
array >= 0.5.8 && < 0.6,
containers >= 0.7 && < 0.9,
mtl >= 2.3 && < 3,
binary >= 0.8.9 && < 0.11,
process >= 1.6.25 && < 1.7,
filepath >= 1.5.4 && < 1.6,
directory >= 1.3.9.0 && < 1.4,
exceptions >= 0.10.9 && < 0.11,
bytestring >= 0.12.1 && < 0.13,
async >= 2.2.6 && < 2.3,
network >= 3.2.8,
cryptohash-sha1 >= 0.11.101.0 && < 0.12,
base16-bytestring >= 1.0.2.0 && < 1.1,
aeson >= 2.2.3 && < 2.3,
hie-bios >= 0.15 && < 0.20,
file-embed >= 0.0.16 && < 0.1,
attoparsec >= 0.13 && < 0.15,
time >= 1.14 && < 2,
text >= 2.1 && < 2.3,
retry >= 0.9 && < 1,
co-log-core >= 0.3.2.5 && < 0.4,
haskell-debugger-view >= 0.2 && < 1.0,
ghc-stack-annotations >=0.1 && <0.2,
if !os(windows)
build-depends: unix >= 2.8.6 && < 2.9,
hs-source-dirs: haskell-debugger
default-language: GHC2021
library dap
import: warnings
exposed-modules: Development.Debug.Adapter.Breakpoints,
Development.Debug.Adapter.Stepping,
Development.Debug.Adapter.Stopped,
Development.Debug.Adapter.Evaluation,
Development.Debug.Adapter.ExceptionInfo,
Development.Debug.Adapter.Init,
Development.Debug.Adapter.Interface,
Development.Debug.Adapter.Output,
Development.Debug.Adapter.Exit,
Development.Debug.Adapter.Exit.Helpers,
Development.Debug.Adapter.Handles,
Development.Debug.Adapter.Server,
Development.Debug.Adapter,
Development.Debug.Adapter.Proxy,
Development.Debug.Session.Setup,
hs-source-dirs: hdb-dap
default-language: GHC2021
default-extensions: CPP
build-depends:
base, ghc, ghci,
exceptions, aeson, bytestring,
containers, filepath,
process, mtl,
unordered-containers >= 0.2.19 && < 0.3,
haskell-debugger,
hie-bios,
prettyprinter ^>= 1.7.0,
co-log-core >= 0.3.2.5 && < 0.4,
implicit-hie ^>=0.1.4.0,
transformers >= 0.6 && < 0.7,
time,
directory >= 1.3.9 && < 1.4,
network >= 3.2.8,
network-run >= 0.4.4,
async >= 2.2.5 && < 2.3,
text >= 2.1 && < 2.3,
dap >= 0.6 && < 0.7,
haskeline >= 0.8 && < 1,
optparse-applicative >= 0.18 && < 0.20,
uuid >= 1.3 && < 1.4,
ghc-stack-annotations >=0.1 && <0.2,
executable hdb
import: warnings
main-is: Main.hs
other-modules: Development.Debug.Interactive,
Development.Debug.Options,
Development.Debug.Options.Parser,
Paths_haskell_debugger
autogen-modules: Paths_haskell_debugger
build-depends:
base, ghc, ghci,
exceptions, aeson, bytestring,
containers, filepath,
process, mtl,
unordered-containers >= 0.2.19 && < 0.3,
haskell-debugger,
haskell-debugger:dap,
hie-bios,
prettyprinter ^>= 1.7.0,
co-log-core >= 0.3.2.5 && < 0.4,
implicit-hie ^>=0.1.4.0,
transformers >= 0.6 && < 0.7,
time,
directory >= 1.3.9 && < 1.4,
network >= 3.2.8,
network-run >= 0.4.4,
async >= 2.2.5 && < 2.3,
text >= 2.1 && < 2.3,
dap >= 0.6 && < 0.7,
haskeline >= 0.8 && < 1,
optparse-applicative >= 0.18 && < 0.20,
uuid >= 1.3 && < 1.4,
ghc-stack-annotations >=0.1 && <0.2,
hs-source-dirs: hdb
default-language: GHC2021
default-extensions: CPP
ghc-options: -threaded
-- See Note [Custom external interpreter]
ghc-options: -fkeep-cafs
test-suite haskell-debugger-test
import: warnings
default-language: GHC2021
-- other-extensions:
type: exitcode-stdio-1.0
hs-source-dirs: test/haskell/
main-is: Main.hs
other-modules: Test.DAP,
Test.DAP.Init,
Test.DAP.Messages,
Test.DAP.Messages.Parser,
Test.DAP.Orphans,
Test.Utils,
Test.Integration.RunInTerminal,
Test.Integration.Scopes,
Test.Integration.LogMessage,
Test.Integration.Persistent,
Test.Integration.Basic,
Test.Integration.Exceptions,
Test.Integration.MultiMain,
Test.Integration.MultiHomeUnit,
Test.Integration.Variables,
Test.Integration.StepOut,
Test.Integration.Stdout,
Test.Integration.Conditional,
Test.Integration.Evaluate,
Test.Integration.StackTrace,
Test.Integration.SelfDebug
build-depends:
base >=4.14,
async,
haskell-debugger,
bytestring, text,
containers,
directory,
filepath,
process,
temporary >= 1.3,
mtl,
unordered-containers,
aeson-pretty >= 0.8.10,
dap, network, aeson, network-run,
random >= 1.3.1,
tasty >= 1.5.3,
tasty-golden >= 2.3.5,
tasty-hunit >= 0.10.2,
tasty-expected-failure >= 0.12.3,
regex >= 1.1,
exceptions,
retry,
stm >= 2.5.3.1,
build-tool-depends: haskell-debugger:hdb
ghc-options: -threaded
-- TODO: Investigate apparent race condition on windows
if !os(windows)
ghc-options: -rtsopts "-with-rtsopts=-N"