traverse v0.1.5 Traverse.Tools

Link to this section Summary

Functions

Utility to trace your traversals by passing your traversal function to this trace_wrapper

Link to this section Types

Link to this type t_simple_filter_fn()
t_simple_filter_fn() :: (any -> boolean)
Link to this type t_simple_mapper_fn()
t_simple_mapper_fn() :: (any -> any)
Link to this type t_simple_walker_fn()
t_simple_walker_fn() :: (any, any -> any)
Link to this type t_traceable_fn()
t_traceable_fn ::
  (any -> any) |
  (any, any -> any) |
  (any, any, any -> any)

Link to this section Functions

Link to this function make_trace_fn(fun)
make_trace_fn(t_traceable_fn) :: t_traceable_fn

Utility to trace your traversals by passing your traversal function to this trace_wrapper.

Instead of passing f you can pass make_trace_fn(f) as long as f is of the correct type.

This wrapper will trace the actual arguments and the return value to stderr.