By running stack ide targets
, I can get a list of all the targets in a stack project. For example, for Halive, I get:
halive:lib
halive:exe:halive
halive:test:compileexpr
halive:test:demo
halive:test:subhalive
halive:test:testghc
halive:test:unit
I'd like to now if there's a way we can ask stack, intero, or some other tool, which targets a target depends on.
For example, in this scenario, I'd like stack/intero/whatever to tell me that halive:test:unit
depends on halive:lib
.
In case that's not possible, I guess I can try inspecting the .cabal file myself... is there a parser or a tool or something that could give me something like that?