@@ -81,40 +81,42 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
8181 | ( ( [" FB" ; " string" ]
8282 | [" string" ]
8383 | [" String" ; " t" ]
84- | [" Stdlib_String " ; " t" ]
84+ | [" Stdlib " ; " String " ; " t" ]
8585 | [" Js" ; (" String" | " String2" ); " t" ] ),
8686 [] ) ->
8787 {dependencies = [] ; type_ = string_t}
88- | ( ([" Js" ; " Types" ; " bigint_val" ] | [" BigInt" ; " t" ] | [" Stdlib_BigInt" ; " t" ]),
88+ | ( ( [" Js" ; " Types" ; " bigint_val" ]
89+ | [" BigInt" ; " t" ]
90+ | [" Stdlib" ; " BigInt" ; " t" ] ),
8991 [] ) ->
9092 {dependencies = [] ; type_ = bigint_t}
91- | ([" Js" ; " Date" ; " t" ] | [" Date" ; " t" ] | [" Stdlib_Date " ; " t" ]), [] ->
93+ | ([" Js" ; " Date" ; " t" ] | [" Date" ; " t" ] | [" Stdlib " ; " Date " ; " t" ]), [] ->
9294 {dependencies = [] ; type_ = date_t}
93- | ( ([" Map" ; " t" ] | [" Stdlib_Map " ; " t" ]),
95+ | ( ([" Map" ; " t" ] | [" Stdlib " ; " Map " ; " t" ]),
9496 [param_translation1; param_translation2] ) ->
9597 {
9698 dependencies =
9799 param_translation1.dependencies @ param_translation2.dependencies;
98100 type_ = map_t (param_translation1.type_, param_translation2.type_);
99101 }
100- | ( ([" WeakMap" ; " t" ] | [" Stdlib_WeakMap " ; " t" ]),
102+ | ( ([" WeakMap" ; " t" ] | [" Stdlib " ; " WeakMap " ; " t" ]),
101103 [param_translation1; param_translation2] ) ->
102104 {
103105 dependencies =
104106 param_translation1.dependencies @ param_translation2.dependencies;
105107 type_ = weakmap_t (param_translation1.type_, param_translation2.type_);
106108 }
107- | ([" Set" ; " t" ] | [" Stdlib_Set " ; " t" ]), [param_translation] ->
109+ | ([" Set" ; " t" ] | [" Stdlib " ; " Set " ; " t" ]), [param_translation] ->
108110 {
109111 dependencies = param_translation.dependencies;
110112 type_ = set_t param_translation.type_;
111113 }
112- | ([" WeakSet" ; " t" ] | [" Stdlib_WeakSet " ; " t" ]), [param_translation] ->
114+ | ([" WeakSet" ; " t" ] | [" Stdlib " ; " WeakSet " ; " t" ]), [param_translation] ->
113115 {
114116 dependencies = param_translation.dependencies;
115117 type_ = weakset_t param_translation.type_;
116118 }
117- | ([" Js" ; " Re" ; " t" ] | [" RegExp" ; " t" ] | [" Stdlib_RegExp " ; " t" ]), [] ->
119+ | ([" Js" ; " Re" ; " t" ] | [" RegExp" ; " t" ] | [" Stdlib " ; " RegExp " ; " t" ]), [] ->
118120 {dependencies = [] ; type_ = regexp_t}
119121 | ([" FB" ; " unit" ] | [" unit" ]), [] -> {dependencies = [] ; type_ = unit_t}
120122 | ( ([" FB" ; " array" ] | [" array" ] | [" Js" ; (" Array" | " Array2" ); " t" ]),
@@ -141,7 +143,7 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
141143 | ( ( [" Pervasives" ; " result" ]
142144 | [" Belt" ; " Result" ; " t" ]
143145 | [" result" ]
144- | [" Stdlib_Result " ; " t" ] ),
146+ | [" Stdlib " ; " Result " ; " t" ] ),
145147 [param_translation1; param_translation2] ) ->
146148 let case name type_ = {case = {label_js = StringLabel name}; t = type_} in
147149 let variant =
@@ -226,24 +228,24 @@ let translate_constr ~config ~params_translation ~(path : Path.t) ~type_env =
226228 | ( ( [" Js" ; " Null" ; " t" ]
227229 | [" Null" ; " t" ]
228230 | [" Js" ; " null" ]
229- | [" Stdlib_Null " ; " t" ] ),
231+ | [" Stdlib " ; " Null " ; " t" ] ),
230232 [param_translation] ) ->
231233 {param_translation with type_ = Null param_translation.type_}
232234 | ( ( [" Js" ; " Nullable" ; " t" ]
233235 | [" Nullable" ; " t" ]
234236 | [" Js" ; " nullable" ]
235237 | [" Js" ; " Null_undefined" ; " t" ]
236238 | [" Js" ; " null_undefined" ]
237- | [" Stdlib_Nullable " ; " t" ] ),
239+ | [" Stdlib " ; " Nullable " ; " t" ] ),
238240 [param_translation] ) ->
239241 {param_translation with type_ = Nullable param_translation.type_}
240242 | ( ( [" Js" ; " Promise" ; " t" ]
241243 | [" Promise" ; " t" ]
242244 | [" promise" ]
243- | [" Stdlib_Promise " ; " t" ] ),
245+ | [" Stdlib " ; " Promise " ; " t" ] ),
244246 [param_translation] ) ->
245247 {param_translation with type_ = Promise param_translation.type_}
246- | ( ([" Js" ; " Dict" ; " t" ] | [" Dict" ; " t" ] | [" dict" ] | [" Stdlib_Dict " ; " t" ]),
248+ | ( ([" Js" ; " Dict" ; " t" ] | [" Dict" ; " t" ] | [" dict" ] | [" Stdlib " ; " Dict " ; " t" ]),
247249 [param_translation] ) ->
248250 {param_translation with type_ = Dict param_translation.type_}
249251 | _ -> default_case ()
0 commit comments