File tree 2 files changed +15
-15
lines changed
2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 26
26
*)
27
27
module Color = struct
28
28
(* use ANSI color codes, see https://en.wikipedia.org/wiki/ANSI_escape_code *)
29
- type color =
30
- | Black [ @ live]
29
+ type [ @ warning " -37 " ] color =
30
+ | Black
31
31
| Red
32
- | Green [ @ live]
32
+ | Green
33
33
| Yellow
34
- | Blue [ @ live]
34
+ | Blue
35
35
| Magenta
36
36
| Cyan
37
- | White [ @ live]
37
+ | White
38
38
39
- type style =
39
+ type [ @ warning " -37 " ] style =
40
40
| FG of color (* foreground *)
41
- | BG of color [ @ live] (* background *)
41
+ | BG of color (* background *)
42
42
| Bold
43
43
| Reset
44
44
| Dim
@@ -132,7 +132,7 @@ module Color = struct
132
132
let term = try Sys. getenv " TERM" with Not_found -> " " in
133
133
term <> " dumb" && term <> " " && isatty stderr
134
134
135
- type setting = Auto [ @ live] | Always [ @ live] | Never [ @ live]
135
+ type [ @ warning " -37 " ] setting = Auto | Always | Never
136
136
137
137
let setup =
138
138
let first = ref true in
Original file line number Diff line number Diff line change @@ -33,16 +33,16 @@ module Time : sig
33
33
34
34
val now : unit -> t
35
35
36
- val to_uint64 : t -> int64 [ @@ live]
36
+ val[ @ warning " -32 " ] to_uint64 : t -> int64
37
37
38
38
(* let of_uint64_ns ns = ns *)
39
39
40
- val nanosecond : t [ @@ live]
41
- val microsecond : t [ @@ live]
42
- val millisecond : t [ @@ live]
43
- val second : t [ @@ live]
44
- val minute : t [ @@ live]
45
- val hour : t [ @@ live]
40
+ val[ @ warning " -32 " ] nanosecond : t
41
+ val[ @ warning " -32 " ] microsecond : t
42
+ val[ @ warning " -32 " ] millisecond : t
43
+ val[ @ warning " -32 " ] second : t
44
+ val[ @ warning " -32 " ] minute : t
45
+ val[ @ warning " -32 " ] hour : t
46
46
47
47
val zero : t
48
48
You can’t perform that action at this time.
0 commit comments