traverse pure probably suitable to be used for data structure spine traversal "in the data-type-recommended way".
Maybe there even more idiomatic way to do it.
Maybe traverse (const $ Identity ()) would ensure nudging Haskell to not manipulating, maybe even not looking into values at all.
As I am interested to see how data structure spine traversing goes in which data types to understand the impact of the design of data structures on spine traversal & so fold.
traverse pureprobably suitable to be used for data structure spine traversal "in the data-type-recommended way".Maybe there even more idiomatic way to do it.
Maybe
traverse (const $ Identity ())would ensure nudging Haskell to not manipulating, maybe even not looking into values at all.As I am interested to see how data structure spine traversing goes in which data types to understand the impact of the design of data structures on spine traversal & so fold.