// Generated by ReScript, PLEASE EDIT WITH CARE import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.mjs"; import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.mjs"; function apply(value, f) { return f(value); } function ordinary(value, f) { return f(value); } function catchMessage(f) { try { return f(); } catch (raw_e) { let e = Primitive_exceptions.internalToException(raw_e); if (e.RE_EXN_ID === "JsExn") { return Stdlib_JsExn.message(e._1); } else { return; } } } export { apply, ordinary, catchMessage, } /* Stdlib_JsExn Not a pure module */