Skip to content

Commit 49c7b2c

Browse files
authored
Merge pull request #33 from NathanReb/drop-ocaml-compat
Drop old stdlib compat layer
2 parents 7be5f3a + 8e64249 commit 49c7b2c

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

lib/expression.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module Ezjsonm_expander : EXPANDER = struct
5151
let expand_intlit ~loc _ = Raise.unsupported_payload ~loc
5252

5353
let expand_int ~loc ~pexp_loc s =
54-
match Ocaml_compat.int_of_string_opt s with
54+
match int_of_string_opt s with
5555
| Some i ->
5656
[%expr `Float [%e Ast_builder.Default.efloat ~loc (string_of_int i)]]
5757
| _ -> Raise.unsupported_payload ~loc:pexp_loc
@@ -70,7 +70,7 @@ module Yojson_expander : EXPANDER = struct
7070
[%expr `Intlit [%e Ast_builder.Default.estring ~loc s]]
7171

7272
let expand_int ~loc ~pexp_loc s =
73-
match Ocaml_compat.int_of_string_opt s with
73+
match int_of_string_opt s with
7474
| Some i -> [%expr `Int [%e Ast_builder.Default.eint ~loc i]]
7575
| None when Integer_const.is_binary s ->
7676
Raise.unsupported_payload ~loc:pexp_loc

lib/ocaml_compat.ml

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/ocaml_compat.mli

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/pattern.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let expand_intlit ~loc s =
77
[%pat? `Intlit [%p Ast_builder.Default.pstring ~loc s]]
88

99
let expand_int ~loc ~ppat_loc s =
10-
match Ocaml_compat.int_of_string_opt s with
10+
match int_of_string_opt s with
1111
| Some i -> [%pat? `Int [%p Ast_builder.Default.pint ~loc i]]
1212
| None when Integer_const.is_binary s ->
1313
Raise.unsupported_payload ~loc:ppat_loc

0 commit comments

Comments
 (0)