Skip to content

Commit b5d4b64

Browse files
committed
Export Ast_pattern.fail. Enables writing more custom patterns via of_func.
Signed-off-by: Carl Eastlund <[email protected]>
1 parent 771d4d9 commit b5d4b64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/ast_pattern.mli

+3
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,6 @@ type context
210210

211211
val of_func : (context -> Location.t -> 'a -> 'b -> 'c) -> ('a, 'b, 'c) t
212212
val to_func : ('a, 'b, 'c) t -> context -> Location.t -> 'a -> 'b -> 'c
213+
214+
val fail : Location.t -> string -> _
215+
(** Call from [of_func]'s argument when the pattern does not match. *)

0 commit comments

Comments
 (0)