This is a bad default for the debugger (even though it is a good default for HLS?).
It's surprising that
cradle:
cabal:
- path: "./"
component: "lib:hegg"
- path: "./test/Test.hs"
component: "test:hegg-test"
doesn't work, but if we instead force hie-bios to load all units eagerly:
cradle:
cabal:
component: "all"
it will.
Note that implicit-hie comes up with the former by default. So, by default, a user cannot set a breakpoint in a non-main unit.