File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module Ocaml_version : sig
66 val v407 : t
77 val v408 : t
88 val v412 : t
9+ val v414 : t
910 val current : t
1011 val compare : t -> t -> int
1112end = struct
@@ -28,6 +29,7 @@ end = struct
2829 let v407 = parse " 4.07"
2930 let v408 = parse " 4.08"
3031 let v412 = parse " 4.12"
32+ let v414 = parse " 4.14"
3133 let current = parse Sys. ocaml_version
3234
3335 let compare ((a1 , b1 ) : t ) ((a2 , b2 ) : t ) =
@@ -86,6 +88,10 @@ let () =
8688 then (
8789 pr " module Atomic = struct end" ;
8890 pr " module Either = struct end" );
91+ if Ocaml_version. (compare current v414) < 0
92+ then (
93+ pr " module In_channel = struct end" ;
94+ pr " module Out_channel = struct end" );
8995 pr " " ;
9096 pr " exception Not_found = Not_found"
9197;;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ include (
4747 with module Either := Shadow_stdlib. Either
4848 with module Float := Shadow_stdlib. Float
4949 with module Hashtbl := Shadow_stdlib. Hashtbl
50+ with module In_channel := Shadow_stdlib. In_channel
5051 with module Int := Shadow_stdlib. Int
5152 with module Int32 := Shadow_stdlib. Int32
5253 with module Int64 := Shadow_stdlib. Int64
@@ -55,6 +56,7 @@ include (
5556 with module Map := Shadow_stdlib. Map
5657 with module Nativeint := Shadow_stdlib. Nativeint
5758 with module Option := Shadow_stdlib. Option
59+ with module Out_channel := Shadow_stdlib. Out_channel
5860 with module Printf := Shadow_stdlib. Printf
5961 with module Queue := Shadow_stdlib. Queue
6062 with module Random := Shadow_stdlib. Random
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ module Caml = struct
109109
110110 module Stack = Caml. Stack (* * @canonical Caml.Stack *)
111111
112- module Stream = Caml. Stream (* * @canonical Caml.Stream *)
112+ module Stream = Caml. Stream [ @ ocaml.warning " -3 " ] (* * @canonical Caml.Stream *)
113113
114114 module String = Caml.StdLabels. String (* * @canonical Caml.StdLabels.String *)
115115
You can’t perform that action at this time.
0 commit comments