Sadly, I don't think there is an easy way to make this generic. Part of the problem is the interface to visitor, which parameterises the types for Error and Visitor. It is therefore hard to implement this in a functor or passed-in interface that does not simply reproduce visitor (as here).
(deserializer: D)
source not stored for this graph (policy: none)
no test coverage detected