Skip to content

Commit

Permalink
Export Ast_pattern.fail. Enables writing more custom patterns via `…
Browse files Browse the repository at this point in the history
…of_func`.

Signed-off-by: Carl Eastlund <[email protected]>
  • Loading branch information
ceastlund committed Feb 11, 2025
1 parent 771d4d9 commit 33ac996
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
unreleased
----------

- Export `Ast_pattern.fail`. (#563, @ceastlund)

0.35.0 (2025-02-03)
-------------------

Expand Down
3 changes: 3 additions & 0 deletions src/ast_pattern.mli
Original file line number Diff line number Diff line change
Expand Up @@ -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. *)

0 comments on commit 33ac996

Please sign in to comment.