Skip to content

Commit 40e53de

Browse files
committed
fix: back to t_let to avoid clashing with user's type t
1 parent 6e96d39 commit 40e53de

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src-bs/shims_let_ops_.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ module type I = sig
1010
end
1111

1212
module type S = sig
13-
type ('i, 'a, 'e) t
13+
type ('i, 'a, 'e) t_let
1414
end
1515

1616
module Make (X : I) = struct
17-
type ('i, 'a, 'e) t = ('i, 'a, 'e) X.t
17+
type ('i, 'a, 'e) t_let = ('i, 'a, 'e) X.t
1818
end

src/decoder.mli

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Infix : sig
2929

3030
val ( <*> ) : ('i, 'a -> 'b, 'e) t -> ('i, 'a, 'e) t -> ('i, 'b, 'e) t
3131

32-
include Shims_let_ops_.S with type ('i, 'o, 'e) t = ('i, 'o, 'e) t
32+
include Shims_let_ops_.S with type ('i, 'o, 'e) t_let = ('i, 'o, 'e) t
3333
end
3434

3535
val fix : (('i, 'a, 'e) t -> ('i, 'a, 'e) t) -> ('i, 'a, 'e) t

src/gen/mkshims.ml

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ let shims_all =
1313

1414
let shims_let_op_pre_408 =
1515
{|
16-
module type S = sig type ('i, 'o, 'e) t end
17-
module Make(X : I) : S with type ('i, 'o, 'e) t = ('i, 'o, 'e) X.t =
16+
module type S = sig type ('i, 'o, 'e) t_let end
17+
module Make(X : I) : S with type ('i, 'o, 'e) t_let = ('i, 'o, 'e) X.t =
1818
struct
19-
type ('i, 'o, 'e) t = ('i, 'o, 'e) X.t
19+
type ('i, 'o, 'e) t_let = ('i, 'o, 'e) X.t
2020
end
2121
|}
2222

2323

2424
let shims_let_op_post_408 =
2525
{|
2626
module type S = sig
27-
type ('i, 'o, 'e) t
28-
val ( let+ ) : ('i, 'a, 'e) t -> ('a -> 'b) -> ('i, 'b, 'e) t
29-
val ( and+ ) : ('i, 'a, 'e) t -> ('i, 'b, 'e) t -> ('i, 'a * 'b, 'e) t
30-
val ( let* ) : ('i, 'a, 'e) t -> ('a -> ('i, 'b, 'e) t) -> ('i, 'b, 'e) t
31-
val ( and* ) : ('i, 'a, 'e) t -> ('i, 'b, 'e) t -> ('i, 'a * 'b, 'e) t
27+
type ('i, 'o, 'e) t_let
28+
val ( let+ ) : ('i, 'a, 'e) t_let -> ('a -> 'b) -> ('i, 'b, 'e) t_let
29+
val ( and+ ) : ('i, 'a, 'e) t_let -> ('i, 'b, 'e) t_let -> ('i, 'a * 'b, 'e) t_let
30+
val ( let* ) : ('i, 'a, 'e) t_let -> ('a -> ('i, 'b, 'e) t_let) -> ('i, 'b, 'e) t_let
31+
val ( and* ) : ('i, 'a, 'e) t_let -> ('i, 'b, 'e) t_let -> ('i, 'a * 'b, 'e) t_let
3232
end
3333

34-
module Make(X : I) : S with type ('i, 'o, 'e) t = ('i, 'o, 'e) X.t =
34+
module Make(X : I) : S with type ('i, 'o, 'e) t_let = ('i, 'o, 'e) X.t =
3535
struct
36-
type ('i, 'o, 'e) t = ('i, 'o, 'e) X.t
36+
type ('i, 'o, 'e) t_let = ('i, 'o, 'e) X.t
3737
let (let+) = X.(>|=)
3838
let (and+) = X.monoid_product
3939
let (let*) = X.(>>=)

0 commit comments

Comments
 (0)