From 558c069b7bb5213e6416a348519b4b93ce34e169 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 21 Feb 2022 22:03:40 -0500 Subject: [PATCH] forgotten module --- src/core/CCShims_syntax.mli | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/core/CCShims_syntax.mli diff --git a/src/core/CCShims_syntax.mli b/src/core/CCShims_syntax.mli new file mode 100644 index 00000000..5b789d85 --- /dev/null +++ b/src/core/CCShims_syntax.mli @@ -0,0 +1,19 @@ + +[@@@ifge 4.8] + +(** Let operators on OCaml >= 4.08.0, nothing otherwise + @since 2.8 + @inline *) +module type LET = sig + type 'a t + + val (let+) : 'a t -> ('a -> 'b) -> 'b t + + val (and+) : 'a t -> 'b t -> ('a * 'b) t + + val (let*) : 'a t -> ('a -> 'b t) -> 'b t + + val (and*) : 'a t -> 'b t -> ('a * 'b) t +end + +[@@@endif]