diff --git a/CHANGES.md b/CHANGES.md index 65119bc0..cdeaf21f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,8 @@ unreleased ---------- +- Export `Ast_pattern.fail`. (#563, @ceastlund) + - Make `Ast_traverse.sexp_of` more concise, and add a test. (#561, @ceastlund) 0.35.0 (2025-02-03) diff --git a/src/ast_pattern.mli b/src/ast_pattern.mli index d81b98e5..9dd54a89 100644 --- a/src/ast_pattern.mli +++ b/src/ast_pattern.mli @@ -210,3 +210,6 @@ type context val of_func : (context -> Location.t -> 'a -> 'b -> 'c) -> ('a, 'b, 'c) t val to_func : ('a, 'b, 'c) t -> context -> Location.t -> 'a -> 'b -> 'c + +val fail : Location.t -> string -> _ +(** Call from [of_func]'s argument when the pattern does not match. *)