Skip to content

Commit e51c61a

Browse files
committed
More deprecations in Pervasives
1 parent 9942dbd commit e51c61a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

runtime/Pervasives.res

+19
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ external throw: exn => 'a = "%raise"
3838

3939
/* Composition operators */
4040

41+
@deprecated("This will be removed in v13")
4142
external \"|>": ('a, 'a => 'b) => 'b = "%revapply"
43+
44+
@deprecated("This will be removed in v13")
4245
external \"@@": ('a => 'b, 'a) => 'b = "%apply"
4346

4447
/* Debugging */
@@ -92,7 +95,10 @@ external \"||": (bool, bool) => bool = "%sequor"
9295

9396
/* Integer operations */
9497

98+
@deprecated("Use `x => x + 1` instead. This will be removed in v13")
9599
external succ: int => int = "%succint"
100+
101+
@deprecated("Use `x => x - 1` instead. This will be removed in v13")
96102
external pred: int => int = "%predint"
97103

98104
@deprecated("Use `Math.abs` instead. This will be removed in v13")
@@ -103,14 +109,25 @@ let abs = x =>
103109
-x
104110
}
105111

112+
@deprecated("Use `Int.bitwiseAnd` instead. This will be removed in v13")
106113
external land: (int, int) => int = "%andint"
114+
115+
@deprecated("Use `Int.bitwiseOr` instead. This will be removed in v13")
107116
external lor: (int, int) => int = "%orint"
117+
118+
@deprecated("Use `Int.bitwiseXor` instead. This will be removed in v13")
108119
external lxor: (int, int) => int = "%xorint"
109120

121+
@deprecated("Use `Int.bitwiseNot` instead. This will be removed in v13")
110122
let lnot = x => lxor(x, -1)
111123

124+
@deprecated("Use `Int.shiftLeft` instead. This will be removed in v13")
112125
external lsl: (int, int) => int = "%lslint"
126+
127+
@deprecated("Use `Int.shiftRightUnsigned` instead. This will be removed in v13")
113128
external lsr: (int, int) => int = "%lsrint"
129+
130+
@deprecated("Use `Int.shiftRight` instead. This will be removed in v13")
114131
external asr: (int, int) => int = "%asrint"
115132

116133
@deprecated("Use `Int.Constants.maxValue` instead. This will be removed in v13")
@@ -310,6 +327,7 @@ external string_of_int: int => string = "String"
310327
@deprecated("Use `Int.fromString` instead. This will be removed in v13") @scope("Number")
311328
external int_of_string: string => int = "parseInt"
312329

330+
@deprecated("Use `Int.fromString` instead. This will be removed in v13")
313331
let int_of_string_opt = s =>
314332
switch int_of_string(s) {
315333
| n if n == %raw("NaN") => None
@@ -330,4 +348,5 @@ let rec \"@" = (l1, l2) =>
330348

331349
/* Miscellaneous */
332350

351+
@deprecated("This will be removed in v13")
333352
type int32 = int

0 commit comments

Comments
 (0)