Skip to content

Commit 3573eea

Browse files
committed
Add Mod.apply_unit
Signed-off-by: christophe Raffalli <christophe@raffallu.eu> Signed-off-by: craff <christophe@raffalli.eu>
1 parent a632341 commit 3573eea

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ast/ast_helper_lite.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ module Mod = struct
280280
let structure ?loc ?attrs x = mk ?loc ?attrs (Pmod_structure x)
281281
let functor_ ?loc ?attrs arg body = mk ?loc ?attrs (Pmod_functor (arg, body))
282282
let apply ?loc ?attrs m1 m2 = mk ?loc ?attrs (Pmod_apply (m1, m2))
283+
let apply_unit ?loc ?attrs m1 = mk ?loc ?attrs (Pmod_apply_unit m1)
283284
let constraint_ ?loc ?attrs m mty = mk ?loc ?attrs (Pmod_constraint (m, mty))
284285
let unpack ?loc ?attrs e = mk ?loc ?attrs (Pmod_unpack e)
285286
let extension ?loc ?attrs a = mk ?loc ?attrs (Pmod_extension a)

ast/ast_helper_lite.mli

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ module Mod : sig
381381
val apply :
382382
?loc:loc -> ?attrs:attrs -> module_expr -> module_expr -> module_expr
383383

384+
val apply_unit :
385+
?loc:loc -> ?attrs:attrs -> module_expr -> module_expr
386+
384387
val constraint_ :
385388
?loc:loc -> ?attrs:attrs -> module_expr -> module_type -> module_expr
386389

0 commit comments

Comments
 (0)