jonascarpay / calligraphy

haskell source code visualizer
BSD 3-Clause "New" or "Revised" License
97 stars 13 forks source link

Ability to just show a module dependency tree #4

Closed ocharles closed 2 years ago

ocharles commented 2 years ago

Hi, first of all - thank you for making this excellent tool!

Something I'd really like on big projects is to get the 10000ft picture by just looking at the module dependency graph. Right now modules are just clusters of nodes, so if we hide everything we'd naturally have nothing to see. It would be cool if modules themselves could be a node, and we could collapse everything down into just module nodes.

jonascarpay commented 2 years ago

I've been thinking about that too. I initially thought it'd be tricky to present it to the user in a sensible way, but now I think there might be a good way around it. I'll take a stab at this later today.

ocharles commented 2 years ago

If I can suggest one potential option:

Then the user can just --show-module-nodes --collapse --no-cluster-modules.

I'm not wed to this idea though - you know better than me!