mirror of
https://github.com/macocianradu/setup.git
synced 2026-03-18 21:00:04 +00:00
26 lines
464 B
Lua
26 lines
464 B
Lua
local dap = require("dap")
|
|
|
|
dap.adapters["haskell-debugger"] = {
|
|
type = "server",
|
|
port = "${port}",
|
|
executable = {
|
|
command = "hdb",
|
|
args = {
|
|
"server", "--port", "${port}"
|
|
}
|
|
}
|
|
}
|
|
|
|
dap.configurations.haskell = {
|
|
{
|
|
type = "haskell-debugger",
|
|
request = "launch",
|
|
name = "hdb:file:main",
|
|
entryFile = "${file}",
|
|
entryPoint = "main",
|
|
projectRoot = "${workspaceFolder}",
|
|
entryArgs = {},
|
|
extraGhcArgs = {},
|
|
},
|
|
}
|