@@ -63,16 +63,14 @@ and ident_unknown = ident_create "unknown"
63
63
64
64
and ident_promise = ident_create " promise"
65
65
66
- and ident_uncurried = ident_create " function$"
67
-
68
66
type test = For_sure_yes | For_sure_no | NA
69
67
70
68
let type_is_builtin_path_but_option (p : Path.t ) : test =
71
69
match p with
72
70
| Pident {stamp} when stamp = ident_option.stamp -> For_sure_no
73
71
| Pident {stamp} when stamp = ident_unit.stamp -> For_sure_no
74
- | Pident {stamp}
75
- when stamp > = ident_int.stamp && stamp < = ident_uncurried.stamp ->
72
+ | Pident {stamp} when stamp > = ident_int.stamp && stamp < = ident_promise.stamp
73
+ ->
76
74
For_sure_yes
77
75
| _ -> NA
78
76
@@ -110,8 +108,6 @@ and path_extension_constructor = Pident ident_extension_constructor
110
108
111
109
and path_promise = Pident ident_promise
112
110
113
- and path_uncurried = Pident ident_uncurried
114
-
115
111
let type_int = newgenty (Tconstr (path_int, [] , ref Mnil ))
116
112
117
113
and type_char = newgenty (Tconstr (path_char, [] , ref Mnil ))
@@ -233,8 +229,6 @@ and ident_some = ident_create "Some"
233
229
234
230
and ident_ctor_unknown = ident_create " Unknown"
235
231
236
- and ident_ctor_uncurried = ident_create " Function$"
237
-
238
232
let common_initial_env add_type add_extension empty_env =
239
233
let decl_bool =
240
234
{
@@ -319,16 +313,6 @@ let common_initial_env add_type add_extension empty_env =
319
313
],
320
314
Record_regular );
321
315
}
322
- and decl_uncurried =
323
- let tvar1 = newgenvar () in
324
- {
325
- decl_abstr with
326
- type_params = [tvar1];
327
- type_arity = 1 ;
328
- type_kind = Type_variant [cstr ident_ctor_uncurried [tvar1]];
329
- type_variance = [Variance. covariant];
330
- type_unboxed = Types. unboxed_true_default_false;
331
- }
332
316
and decl_unknown =
333
317
let tvar = newgenvar () in
334
318
{
@@ -395,7 +379,6 @@ let common_initial_env add_type add_extension empty_env =
395
379
|> add_type ident_unit decl_unit
396
380
|> add_type ident_extension_constructor decl_abstr
397
381
|> add_type ident_exn decl_exn
398
- |> add_type ident_uncurried decl_uncurried
399
382
|> add_type ident_option decl_option
400
383
|> add_type ident_result decl_result
401
384
|> add_type ident_lazy_t decl_lazy_t
0 commit comments