Skip to content

Commit

Permalink
clarify returning_ combinator semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
jmid committed Oct 28, 2022
1 parent 7104612 commit 5e460ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/lin_api.mli
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,13 @@ val returning_or_exc :
In either case the result is compared to the corresponding sequential result and hence [comb] has to be [deconstructible]. *)

val returning_ : ('a, 'b, 'c, 'd) ty -> ('a, unit, 'c) Fun.fn
(** [returning comb] indicates the return type [comb] which is ignored. *)
(** [returning comb] indicates that the return type is [comb] and that it should
not be compared to the corresponding sequential result. *)

val returning_or_exc_ :
('a, 'b, 'c, 'd) ty -> ('a, (unit, exn) result, 'c) Fun.fn
(** [returning_or_exc comb] indicates that the function may raise an exception and that the return type is [comb].
In both cases the result is ignored. *)
In both cases the result is not compared to the corresponding sequential result. *)

val ( @-> ) :
('a, constructible, 'b, 'c) ty ->
Expand Down

0 comments on commit 5e460ad

Please sign in to comment.