Acutis_internals.ErrorAll of the error messages.
val pp : Stdlib.Format.formatter -> t -> unitval of_string : string -> tval handle : ('a -> 'b) -> 'a -> t list * 'b optionUse this to handle functions which may raise an error.
This is equal to Ast.loc.
val parse_error : int -> loc -> _val dup_record_key : loc -> string -> _val extra_record_tag : loc -> _val bad_block : loc -> _val bad_field : loc -> _val type_mismatch :
loc ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
'ty ->
_val missing_field :
loc ->
string ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
_val underscore_in_construct : loc -> _val name_bound_too_many : loc -> string -> _val var_missing : loc -> string -> _val var_unused : loc -> string -> unitval pat_num_mismatch : loc -> _val map_pat_num_mismatch : loc -> _val component_name_mismatch : loc -> string -> string -> _val component_extra_prop : loc -> string -> string -> unitval interface_duplicate : loc -> string -> _val interface_bad_name : loc -> string -> _val interface_untagged_union : loc -> _val interface_unmatched_tags : loc -> string -> string -> _val interface_duplicate_tag :
loc ->
(Stdlib.Format.formatter -> 'a -> unit) ->
'a ->
_val interface_duplicate_enum :
loc ->
(Stdlib.Format.formatter -> 'a -> unit) ->
'a ->
unitval interface_open_bool_union : loc -> _val interface_type_mismatch :
loc ->
string ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
'ty ->
_val interface_missing_prop :
loc ->
string ->
(Stdlib.Format.formatter -> 'ty -> unit) ->
'ty ->
_val unused_case : loc -> unitval parmatch : loc -> (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> _val cycle : loc -> string list -> exnval missing_component : loc -> string -> exn