jonascarpay / calligraphy

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

Hide all non-top-level definitions #8

Closed ocharles closed 2 years ago

ocharles commented 2 years ago

Hi, me again! I'd like to have a view that hides all local definitions, but retains top-level values even if they aren't exported. My reasoning is I'd like to see locally defined top-level functions that are only used once (as that suggests it might be simpler to just inline). Right now, seeing all where and let-bound values makes this quite difficult.

jonascarpay commented 2 years ago

Did you look at --collapse-values? If I understand correctly, that should do exactly what you're looking for.

ocharles commented 2 years ago

Oh, I had not - that's perfect. Thanks!