@hackage haskell-dap0.0.6.0

haskell-dap is a GHCi having DAP interface.

haskell-dap

The goal is "let GHCi speak DAP".

goal.png

Information

Limitation

Currently this project is an experimental design and implementation.

  • supporting ghc-8.0.2, ghc-8.2.2
  • need stack project.
  • checked on windows7, centos7

Features

inspect watch

01_inspect_variables.gif

inspect hoover

02_inspect_hoover.gif

inspect repl

03_inspect_repl.gif

logpoint

04_log_point.gif

break condition

05_break_exp.gif

break hit count

06_break_hitcount.gif

Install

install vscode and phoityne extension.

Run stack install

% stack install haskell-dap
  . . . . .
Copied executables to C:\Users\[USERNAME]\AppData\Roaming\local\bin:
- haskell-dap.exe

%

Configuration

Add --with-ghc option to ghciCmd variable in the vscode launch.json.

"ghciCmd": "stack ghci --with-ghc=haskell-dap --test --no-load --no-build --main-is TARGET --ghci-options -fghci-hist-size=5 --ghci-options -fprint-evld-with-show ",

IFData Design

if_data.png

Sequences

Overview.

seq1.png

Debugging details.

seq2.png