I’m trying to use ghci debugger to debug a failing test.
I use a normal set up with a library and a separate test package.
I’m trying to setup a breakpoint in a function from a module (from the library) imported by the test file, I get
ghci> :b WarehousePlanner.Rearrange 168
module 'WarehousePlanner.Rearrange' is from another package;
this command requires an interpreted module
Any idea ?
Solved
I found out that using adding stack ghci --test
and then :load test/Spec.hs
loads every modules (but what I was doing stack ghci test/Spec.hs
doesn’t).