mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
forgotten module
This commit is contained in:
parent
dae93cf25f
commit
558c069b7b
1 changed files with 19 additions and 0 deletions
19
src/core/CCShims_syntax.mli
Normal file
19
src/core/CCShims_syntax.mli
Normal 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]
|
||||
Loading…
Add table
Reference in a new issue