Skip to content

hie-bios only loads lazily components other than main by default #38

@alt-romes

Description

@alt-romes

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.

  • Duplicate test which sets breakpoint on internal unit but remove the hie.yaml file in it and make sure it still works.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions