Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 60 additions & 41 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 58 additions & 0 deletions debug_adapter_schemas/haskell-debugger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Haskell Debugger (hdb)",
"description": "Launch configuration for the Well-Typed Haskell debugger (hdb). Requires GHC 9.14+ and the `hdb` executable on PATH. See https://well-typed.github.io/haskell-debugger/",
"type": "object",
"required": ["projectRoot", "entryFile"],
"properties": {
"type": {
"type": "string",
"const": "haskell-debugger",
"description": "Debug adapter id (matches VS Code `launch.json` type)."
},
"request": {
"type": "string",
"enum": ["launch"],
"default": "launch",
"description": "hdb currently supports launch sessions only."
},
"name": {
"type": "string",
"description": "Label for this debug session in the UI."
},
"projectRoot": {
"type": "string",
"description": "Absolute path to the project root (Cabal/Stack/hie-bios cradle root)."
},
"entryFile": {
"type": "string",
"description": "Path to the Haskell source file containing the entry point, relative to `projectRoot`."
},
"entryPoint": {
"type": "string",
"description": "Name of the function to start (`main` or another top-level binding).",
"default": "main"
},
"entryArgs": {
"type": "array",
"items": { "type": "string" },
"description": "Arguments for the entry point. For `main`, these are passed as program arguments (`getArgs`).",
"default": []
},
"extraGhcArgs": {
"type": "array",
"items": { "type": "string" },
"description": "Extra flags passed to the GHC invocation inferred by hie-bios.",
"default": []
},
"internalInterpreter": {
"type": "boolean",
"description": "Whether to use the internal GHCi interpreter for debugging.",
"default": false
},
"debugServer": {
"type": "integer",
"description": "If set, Zed connects to an already-running `hdb server` on this TCP port instead of spawning `hdb`. Same as VS Code `launch.json` `debugServer`. See https://well-typed.github.io/haskell-debugger/"
}
}
}
2 changes: 2 additions & 0 deletions extension.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ languages = [
# "Alex", # https://github.com/haskell/haskell-language-server/issues/4820
]

[debug_adapters.haskell-debugger]

[grammars.haskell]
repository = "https://github.com/tree-sitter/tree-sitter-haskell"
commit = "c30d812bc90827f1a54106a25bc9a6307f5cdcec" # 0.23.1
Expand Down
Loading
Loading