Skip to content

Commit b4547bc

Browse files
committed
More deprecations in Pervasives
1 parent 99bb698 commit b4547bc

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
@@ -36,7 +36,10 @@ external throw: Stdlib_Error.t => 'a = "%raise"
3636

3737
/* Composition operators */
3838

39+
@deprecated("This will be removed in v13")
3940
external \"|>": ('a, 'a => 'b) => 'b = "%revapply"
41+
42+
@deprecated("This will be removed in v13")
4043
external \"@@": ('a => 'b, 'a) => 'b = "%apply"
4144

4245
/* Debugging */
@@ -90,7 +93,10 @@ external \"||": (bool, bool) => bool = "%sequor"
9093

9194
/* Integer operations */
9295

96+
@deprecated("Use `x + 1` instead. This will be removed in v13")
9397
external succ: int => int = "%succint"
98+
99+
@deprecated("Use `x - 1` instead. This will be removed in v13")
94100
external pred: int => int = "%predint"
95101

96102
@deprecated("Use `Math.abs` instead. This will be removed in v13")
@@ -101,14 +107,25 @@ let abs = x =>
101107
-x
102108
}
103109

110+
@deprecated("Use `Int.bitwiseAnd` instead. This will be removed in v13")
104111
external land: (int, int) => int = "%andint"
112+
113+
@deprecated("Use `Int.bitwiseOr` instead. This will be removed in v13")
105114
external lor: (int, int) => int = "%orint"
115+
116+
@deprecated("Use `Int.bitwiseXor` instead. This will be removed in v13")
106117
external lxor: (int, int) => int = "%xorint"
107118

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

122+
@deprecated("Use `Int.shiftLeft` instead. This will be removed in v13")
110123
external lsl: (int, int) => int = "%lslint"
124+
125+
@deprecated("Use `Int.shiftRightUnsigned` instead. This will be removed in v13")
111126
external lsr: (int, int) => int = "%lsrint"
127+
128+
@deprecated("Use `Int.shiftRight` instead. This will be removed in v13")
112129
external asr: (int, int) => int = "%asrint"
113130

114131
@deprecated("Use `Int.Constants.maxValue` instead. This will be removed in v13")
@@ -308,6 +325,7 @@ external string_of_int: int => string = "String"
308325
@deprecated("Use `Int.fromString` instead. This will be removed in v13") @scope("Number")
309326
external int_of_string: string => int = "parseInt"
310327

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

329347
/* Miscellaneous */
330348

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

0 commit comments

Comments
 (0)