Skip to content

Commit 2ad591d

Browse files
authored
Merge pull request #841 from Julow/remove-lwt-ops
Remove redefinitions of Lwt infix operators
2 parents 50c824a + 3e2fd7c commit 2ad591d

File tree

5 files changed

+3
-20
lines changed

5 files changed

+3
-20
lines changed

src/lib/eliom_lib_base.shared.ml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ open Ocsigen_lib_base
2121

2222
exception Eliom_Internal_Error of string
2323

24-
module Lwt_ops = struct
25-
let ( >>= ) = Lwt.( >>= )
26-
let ( =<< ) = Lwt.( =<< )
27-
let ( >|= ) = Lwt.( >|= )
28-
let ( =|< ) = Lwt.( =|< )
29-
end
30-
3124
type pos = Lexing.position * Lexing.position
3225

3326
let pos_to_string ((start, stop) : pos) =

src/lib/eliom_lib_base.shared.mli

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@
1919

2020
exception Eliom_Internal_Error of string
2121

22-
(** Module with Lwt operators: Open to use them without polluting your scope. *)
23-
module Lwt_ops : sig
24-
val ( >>= ) : 'a Lwt.t -> ('a -> 'b Lwt.t) -> 'b Lwt.t
25-
val ( =<< ) : ('a -> 'b Lwt.t) -> 'a Lwt.t -> 'b Lwt.t
26-
val ( >|= ) : 'a Lwt.t -> ('a -> 'b) -> 'b Lwt.t
27-
val ( =|< ) : ('a -> 'b) -> 'a Lwt.t -> 'b Lwt.t
28-
end
29-
3022
module type Map_S = sig
3123
include Map.S
3224

src/lib/eliom_mkreg.server.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ open Lwt.Syntax
2121
*)
2222

2323
module S = Eliom_service
24+
open Lwt.Infix
2425

25-
let ( >>= ) = Lwt.( >>= )
2626
let suffix_redir_uri_key = Polytables.make_key ()
2727

2828
type ('options, 'page, 'result) param =

src/lib/eliom_react.client.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ open Lwt.Syntax
2222
*)
2323

2424
(* Module for event unwrapping *)
25-
let ( >|= ) = Lwt.( >|= )
26-
2725
open Lwt_react
26+
open Lwt.Infix
2827

2928
let section = Logs.Src.create "eliom:comet"
3029

src/lib/eliom_reference.server.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
(** {2 Eliom references} *)
2222

2323
open Eliom_state
24-
25-
let ( >>= ) = Lwt.bind
24+
open Lwt.Infix
2625

2726
module Ocsipersist = struct
2827
include Eliom_common.Ocsipersist.Store

0 commit comments

Comments
 (0)