Melange_ppx_lib.Ast_io
module Intf_or_impl : sig ... end
type input_version = (module OCaml_version)
val fall_back_input_version : (module OCaml_version)
type read_error =
| Not_a_binary_ast
| Unknown_version of string * input_version
| Source_parse_error of Ppxlib_ast.Location_error.t * input_version
| System_error of Ppxlib_ast.Location_error.t * input_version
type input_kind =
| Possibly_source of {
filename : string;
parse_fun : Lexing.lexbuf -> Intf_or_impl.t;
}
| Necessarily_binary
val read : input_source -> input_kind:input_kind -> (t, read_error) result
val read_exn : input_source -> input_kind:input_kind -> t