forgotten module

This commit is contained in:
Simon Cruanes 2022-02-21 22:03:40 -05:00
parent dae93cf25f
commit 558c069b7b
No known key found for this signature in database
GPG key ID: 4AC01D0849AA62B6

View file

@ -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]