Coq.ProtectSourceThis "monad" could be related to "Runners in action" (Ahman, Bauer), thanks to Guillaume Munch-Maccagnoni for the reference and for many useful tips!
Must be hooked to allow Protect to capture the feedback.
Eval a function and reify the exceptions. Note f _must_ be pure, as in case of anomaly f may be re-executed with debug options. Beware, not thread-safe! token Does allow to interrupt the evaluation.