Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
split_at_f f l
is the partition (l1, l2)
such that l1
is the longest prefix where the predicate f
holds. The order of the elements is not changed.
split_at_i i l
is the partition (l1, l2)
such that l1
contains the first i elements. The order of the elements is not changed.
module Fmt : sig ... end
exception Located of Ppxlib.Location.t * exn
val error : loc:Ppxlib.Location.t -> exn -> 'a
error ~loc e
raises e
, wrapped in Located(loc, e)
.
val check : loc:Ppxlib.Location.t -> bool -> exn -> unit
check ~loc b e
checks if b
is true, otherwise raises e
, wrapped in Located(loc, e)
.
val error_report : loc:Ppxlib.Location.t -> string -> 'a
error_report ~loc e
is error ~loc (TypeCheckingError s)
.
val check_report : loc:Ppxlib.Location.t -> bool -> string -> unit
check_report ~loc b e
is check ~loc b (TypeCheckingError s)
. *
val not_supported : loc:Ppxlib.Location.t -> string -> 'a
not_supported ~loc s
raises NotSupported s
, wrapped in Located(loc, e)
.