Questions tagged [ghcid]

6 questions
13
votes
1 answer

Is there a way to kill all forked threads in a GHCi session without restarting it?

Based on my previous question I'd like to ask if there's any way to kill all user created threads in a GHCi session? The reason for this is that when a function exits in GHCi the threads that it spawned don't terminate automatically, persisting even…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
4
votes
1 answer

How to run test suite in ghcid with cabal?

I've found a reference for doing this in stack in https://www.parsonsmatt.org/2018/05/19/ghcid_for_the_win.html and some mention of it here: https://github.com/ndmitchell/ghcid/issues/128 What I've tried: [nix-shell:~/NewProjects/orgmode-parse]$…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
0
votes
0 answers

How to emulate post-mortem debugging mode in HSpec/Tasty

Haskell debugger does support post-mortem debugging (setting breakpoints on raised exception). So it should be possible to drop into debugger on testing failtures, as pytest --pdb does it. In principle you should load test runner in ghci/ghcid with…
uhbif19
  • 3,139
  • 3
  • 26
  • 48
0
votes
1 answer

How can I use ghcid allow-eval with cabal

I have a Stack based project and with the following: ghcid --command 'stack ghci' --allow-eval --clear --no-height-limit '-o ghcid.log' I can have ghcid execute/evaluate a function as follows: -- $> unit_simple_single unit_simple_single :: IO…
John Walker
  • 513
  • 4
  • 16
0
votes
0 answers

ghcid output on a mac: status appears in the title bar

Complete Haskell beginner here. MacOS 12.2.1 I have installed Haskell with ghcup, and ghci 8.10.7 is installed. Excellent. Following the instructions here, I have added ghcid cabal update && cabal install ghcid and created a project mkdir myproject…
user2162871
  • 409
  • 3
  • 10
0
votes
0 answers

Fail to launch ghcid in terminal in VSCode -----showing terminated with exit code: 1

I'm very new to vscode as well as ghcid. When I follow the instruction to open the Command Palette and type " Start Ghcid", then it shows " The terminal process "ghcid…