Debian Codegraph @

test/inline/local_option.mli

raw symbols SCIP
1 (** A local option monad, to demonstrate [let%mapl] and [let%bindl]. *)
2
3 type 'a t = 'a option
4
5 module Let_syntax : sig
6 module Let_syntax : sig
7 val return : 'a -> 'a t
8 val map : 'a t -> f:('a -> 'b) -> 'b t
9 val bind : 'a t -> f:('a -> 'b t) -> 'b t
10 val both : 'a t -> 'b t -> ('a * 'b) t
11 val map4 : 'a t -> 'b t -> 'c t -> 'd t -> f:('a -> 'b -> 'c -> 'd -> 'e) -> 'e t
12 val bind4 : 'a t -> 'b t -> 'c t -> 'd t -> f:('a -> 'b -> 'c -> 'd -> 'e t) -> 'e t
13
14 module Open_on_rhs : sig end
15 end
16 end