type ast =| Impl : (module Migrate_parsetree.Versions.OCaml_version with type Ast.Parsetree.structure = 'concrete) * 'concrete -> ast| Intf : (module Migrate_parsetree.Versions.OCaml_version with type Ast.Parsetree.signature = 'concrete) * 'concrete -> astA marshalled ast packs the ast with the corresponding version of the frontend
type read_error =
val from_channel : Stdlib.in_channel -> (filename * ast, read_error) Result.resultLoad a marshalled AST from a channel
Any exception raised during unmarshalling (see
Marshal) can escape.
val from_bytes : bytes -> int -> (filename * ast, read_error) Result.resultLoad a marshalled AST from a byte string.
See
from_channeldescription for exception that can be raised.
val to_channel : Stdlib.out_channel -> filename -> ast -> unitMarshal an AST to a channel