Module Melange_compiler_libs.Cmi_format

type pers_flags =
  1. | Rectypes
  2. | Alerts(Misc.alerts)
  3. | Opaque
;
type cmi_infos = {
  1. cmi_name: Misc.modname,
  2. cmi_sign: list(Types.signature_item),
  3. cmi_crcs: Misc.crcs,
  4. cmi_flags: list(pers_flags),
};
let output_cmi: string => Stdlib.out_channel => cmi_infos => Stdlib.Digest.t;
let create_cmi: ?check_exists:unit => string => cmi_infos => Stdlib.Digest.t;
let input_cmi: Stdlib.in_channel => cmi_infos;
let read_cmi: string => cmi_infos;
type error =
  1. | Not_an_interface(Misc.filepath)
  2. | Wrong_version_interface(Misc.filepath, string)
  3. | Corrupted_interface(Misc.filepath)
;
exception Error(error);
let report_error: Stdlib.Format.formatter => error => unit;