UNPKG

bs-ajv

Version:

BucklesScript bindings to Ajv (Another JSON Validator)

47 lines (39 loc) 768 B
'use strict'; var id = [0]; function caml_set_oo_id(b) { b[1] = id[0]; id[0] += 1; return b; } function get_id() { id[0] += 1; return id[0]; } function create(str) { var v_001 = get_id(/* () */0); var v = /* tuple */[ str, v_001 ]; v.tag = 248; return v; } function isCamlExceptionOrOpenVariant(e) { if (e === undefined) { return /* false */0; } else if (e.tag === 248) { return /* true */1; } else { var slot = e[0]; if (slot !== undefined) { return +(slot.tag === 248); } else { return /* false */0; } } } exports.caml_set_oo_id = caml_set_oo_id; exports.get_id = get_id; exports.create = create; exports.isCamlExceptionOrOpenVariant = isCamlExceptionOrOpenVariant; /* No side effect */