small api change in future

This commit is contained in:
Simon Cruanes 2013-03-24 17:57:02 +01:00
parent b4e07e07d2
commit d74808efe0
2 changed files with 7 additions and 0 deletions

View file

@ -524,3 +524,5 @@ module Infix = struct
let (>>=) x f = flatMap f x
let (>>) a f = andThen a f
end
include Infix

View file

@ -142,7 +142,12 @@ val spawn_process : ?pool:Pool.t -> ?stdin:string -> cmd:string ->
val sleep : ?pool:Pool.t -> float -> unit t
(** Future that returns with success in the given amount of seconds *)
module Infix : sig
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val (>>) : 'a t -> (unit -> 'b t) -> 'b t
end
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val (>>) : 'a t -> (unit -> 'b t) -> 'b t