@tellahq/rescript 10.1.0-alpha.2 → 10.1.4-republish-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/CHANGELOG.md +204 -2
  2. package/README.md +1 -1
  3. package/darwinarm64/bsb_helper.exe +0 -0
  4. package/darwinarm64/bsc.exe +0 -0
  5. package/darwinarm64/rescript.exe +0 -0
  6. package/docs/docson/build-schema.json +497 -516
  7. package/lib/4.06.1/bsb_helper.ml +6 -1
  8. package/lib/4.06.1/rescript.ml +1414 -1191
  9. package/lib/4.06.1/whole_compiler.ml +69844 -69069
  10. package/lib/es6/belt_internalBuckets.js +13 -13
  11. package/lib/es6/caml_float.js +5 -5
  12. package/lib/es6/caml_format.js +1 -1
  13. package/lib/es6/caml_int64.js +1 -1
  14. package/lib/es6/caml_obj.js +26 -6
  15. package/lib/es6/complex.js +4 -4
  16. package/lib/es6/js.js +3 -0
  17. package/lib/es6/js_promise2.js +16 -0
  18. package/lib/es6/jsxPPXReactSupport.js +26 -0
  19. package/lib/js/belt_internalBuckets.js +13 -13
  20. package/lib/js/caml_float.js +5 -5
  21. package/lib/js/caml_format.js +1 -1
  22. package/lib/js/caml_int64.js +1 -1
  23. package/lib/js/caml_obj.js +26 -6
  24. package/lib/js/complex.js +4 -4
  25. package/lib/js/js.js +3 -0
  26. package/lib/js/js_promise2.js +14 -0
  27. package/lib/js/jsxPPXReactSupport.js +24 -0
  28. package/lib/ocaml/arg.cmi +0 -0
  29. package/lib/ocaml/arg.cmt +0 -0
  30. package/lib/ocaml/arg.cmti +0 -0
  31. package/lib/ocaml/arg.ml +2 -2
  32. package/lib/ocaml/array.cmi +0 -0
  33. package/lib/ocaml/array.cmt +0 -0
  34. package/lib/ocaml/array.cmti +0 -0
  35. package/lib/ocaml/arrayLabels.cmi +0 -0
  36. package/lib/ocaml/arrayLabels.cmt +0 -0
  37. package/lib/ocaml/arrayLabels.cmti +0 -0
  38. package/lib/ocaml/belt.cmt +0 -0
  39. package/lib/ocaml/belt_Array.cmi +0 -0
  40. package/lib/ocaml/belt_Array.cmt +0 -0
  41. package/lib/ocaml/belt_Array.cmti +0 -0
  42. package/lib/ocaml/belt_Float.cmt +0 -0
  43. package/lib/ocaml/belt_Float.cmti +0 -0
  44. package/lib/ocaml/belt_HashMap.cmi +0 -0
  45. package/lib/ocaml/belt_HashMap.cmt +0 -0
  46. package/lib/ocaml/belt_HashMap.cmti +0 -0
  47. package/lib/ocaml/belt_HashMapInt.cmi +0 -0
  48. package/lib/ocaml/belt_HashMapInt.cmt +0 -0
  49. package/lib/ocaml/belt_HashMapInt.cmti +0 -0
  50. package/lib/ocaml/belt_HashMapString.cmi +0 -0
  51. package/lib/ocaml/belt_HashMapString.cmt +0 -0
  52. package/lib/ocaml/belt_HashMapString.cmti +0 -0
  53. package/lib/ocaml/belt_HashSet.cmi +0 -0
  54. package/lib/ocaml/belt_HashSet.cmt +0 -0
  55. package/lib/ocaml/belt_HashSet.cmti +0 -0
  56. package/lib/ocaml/belt_HashSetInt.cmi +0 -0
  57. package/lib/ocaml/belt_HashSetInt.cmt +0 -0
  58. package/lib/ocaml/belt_HashSetInt.cmti +0 -0
  59. package/lib/ocaml/belt_HashSetString.cmi +0 -0
  60. package/lib/ocaml/belt_HashSetString.cmt +0 -0
  61. package/lib/ocaml/belt_HashSetString.cmti +0 -0
  62. package/lib/ocaml/belt_Id.cmi +0 -0
  63. package/lib/ocaml/belt_Id.cmt +0 -0
  64. package/lib/ocaml/belt_Id.cmti +0 -0
  65. package/lib/ocaml/belt_Int.cmt +0 -0
  66. package/lib/ocaml/belt_Int.cmti +0 -0
  67. package/lib/ocaml/belt_List.cmi +0 -0
  68. package/lib/ocaml/belt_List.cmt +0 -0
  69. package/lib/ocaml/belt_List.cmti +0 -0
  70. package/lib/ocaml/belt_Map.cmi +0 -0
  71. package/lib/ocaml/belt_Map.cmt +0 -0
  72. package/lib/ocaml/belt_Map.cmti +0 -0
  73. package/lib/ocaml/belt_MapDict.cmi +0 -0
  74. package/lib/ocaml/belt_MapDict.cmt +0 -0
  75. package/lib/ocaml/belt_MapDict.cmti +0 -0
  76. package/lib/ocaml/belt_MapInt.cmi +0 -0
  77. package/lib/ocaml/belt_MapInt.cmt +0 -0
  78. package/lib/ocaml/belt_MapInt.cmti +0 -0
  79. package/lib/ocaml/belt_MapString.cmi +0 -0
  80. package/lib/ocaml/belt_MapString.cmt +0 -0
  81. package/lib/ocaml/belt_MapString.cmti +0 -0
  82. package/lib/ocaml/belt_MutableMap.cmi +0 -0
  83. package/lib/ocaml/belt_MutableMap.cmt +0 -0
  84. package/lib/ocaml/belt_MutableMap.cmti +0 -0
  85. package/lib/ocaml/belt_MutableMapInt.cmi +0 -0
  86. package/lib/ocaml/belt_MutableMapInt.cmt +0 -0
  87. package/lib/ocaml/belt_MutableMapInt.cmti +0 -0
  88. package/lib/ocaml/belt_MutableMapString.cmi +0 -0
  89. package/lib/ocaml/belt_MutableMapString.cmt +0 -0
  90. package/lib/ocaml/belt_MutableMapString.cmti +0 -0
  91. package/lib/ocaml/belt_MutableQueue.cmi +0 -0
  92. package/lib/ocaml/belt_MutableQueue.cmt +0 -0
  93. package/lib/ocaml/belt_MutableQueue.cmti +0 -0
  94. package/lib/ocaml/belt_MutableSet.cmi +0 -0
  95. package/lib/ocaml/belt_MutableSet.cmt +0 -0
  96. package/lib/ocaml/belt_MutableSet.cmti +0 -0
  97. package/lib/ocaml/belt_MutableSetInt.cmi +0 -0
  98. package/lib/ocaml/belt_MutableSetInt.cmt +0 -0
  99. package/lib/ocaml/belt_MutableSetInt.cmti +0 -0
  100. package/lib/ocaml/belt_MutableSetString.cmi +0 -0
  101. package/lib/ocaml/belt_MutableSetString.cmt +0 -0
  102. package/lib/ocaml/belt_MutableSetString.cmti +0 -0
  103. package/lib/ocaml/belt_MutableStack.cmi +0 -0
  104. package/lib/ocaml/belt_MutableStack.cmt +0 -0
  105. package/lib/ocaml/belt_MutableStack.cmti +0 -0
  106. package/lib/ocaml/belt_Option.cmi +0 -0
  107. package/lib/ocaml/belt_Option.cmt +0 -0
  108. package/lib/ocaml/belt_Option.cmti +0 -0
  109. package/lib/ocaml/belt_Range.cmi +0 -0
  110. package/lib/ocaml/belt_Range.cmt +0 -0
  111. package/lib/ocaml/belt_Range.cmti +0 -0
  112. package/lib/ocaml/belt_Result.cmi +0 -0
  113. package/lib/ocaml/belt_Result.cmt +0 -0
  114. package/lib/ocaml/belt_Result.cmti +0 -0
  115. package/lib/ocaml/belt_Set.cmi +0 -0
  116. package/lib/ocaml/belt_Set.cmt +0 -0
  117. package/lib/ocaml/belt_Set.cmti +0 -0
  118. package/lib/ocaml/belt_SetDict.cmi +0 -0
  119. package/lib/ocaml/belt_SetDict.cmt +0 -0
  120. package/lib/ocaml/belt_SetDict.cmti +0 -0
  121. package/lib/ocaml/belt_SetInt.cmi +0 -0
  122. package/lib/ocaml/belt_SetInt.cmt +0 -0
  123. package/lib/ocaml/belt_SetInt.cmti +0 -0
  124. package/lib/ocaml/belt_SetString.cmi +0 -0
  125. package/lib/ocaml/belt_SetString.cmt +0 -0
  126. package/lib/ocaml/belt_SetString.cmti +0 -0
  127. package/lib/ocaml/belt_SortArray.cmi +0 -0
  128. package/lib/ocaml/belt_SortArray.cmt +0 -0
  129. package/lib/ocaml/belt_SortArray.cmti +0 -0
  130. package/lib/ocaml/belt_SortArrayInt.cmt +0 -0
  131. package/lib/ocaml/belt_SortArrayInt.cmti +0 -0
  132. package/lib/ocaml/belt_SortArrayString.cmt +0 -0
  133. package/lib/ocaml/belt_SortArrayString.cmti +0 -0
  134. package/lib/ocaml/belt_internalAVLset.cmt +0 -0
  135. package/lib/ocaml/belt_internalAVLset.cmti +0 -0
  136. package/lib/ocaml/belt_internalAVLtree.cmt +0 -0
  137. package/lib/ocaml/belt_internalAVLtree.cmti +0 -0
  138. package/lib/ocaml/belt_internalBuckets.cmt +0 -0
  139. package/lib/ocaml/belt_internalBuckets.cmti +0 -0
  140. package/lib/ocaml/belt_internalBucketsType.cmt +0 -0
  141. package/lib/ocaml/belt_internalBucketsType.cmti +0 -0
  142. package/lib/ocaml/belt_internalMapInt.cmt +0 -0
  143. package/lib/ocaml/belt_internalMapString.cmt +0 -0
  144. package/lib/ocaml/belt_internalSetBuckets.cmt +0 -0
  145. package/lib/ocaml/belt_internalSetBuckets.cmti +0 -0
  146. package/lib/ocaml/belt_internalSetInt.cmt +0 -0
  147. package/lib/ocaml/belt_internalSetString.cmt +0 -0
  148. package/lib/ocaml/belt_internals.cmti +0 -0
  149. package/lib/ocaml/buffer.cmi +0 -0
  150. package/lib/ocaml/buffer.cmt +0 -0
  151. package/lib/ocaml/buffer.cmti +0 -0
  152. package/lib/ocaml/bytes.cmi +0 -0
  153. package/lib/ocaml/bytes.cmt +0 -0
  154. package/lib/ocaml/bytes.cmti +0 -0
  155. package/lib/ocaml/bytesLabels.cmi +0 -0
  156. package/lib/ocaml/bytesLabels.cmt +0 -0
  157. package/lib/ocaml/bytesLabels.cmti +0 -0
  158. package/lib/ocaml/callback.cmi +0 -0
  159. package/lib/ocaml/callback.cmt +0 -0
  160. package/lib/ocaml/callback.cmti +0 -0
  161. package/lib/ocaml/camlinternalLazy.cmi +0 -0
  162. package/lib/ocaml/camlinternalLazy.cmt +0 -0
  163. package/lib/ocaml/camlinternalLazy.cmti +0 -0
  164. package/lib/ocaml/camlinternalMod.cmi +0 -0
  165. package/lib/ocaml/camlinternalMod.cmt +0 -0
  166. package/lib/ocaml/camlinternalMod.cmti +0 -0
  167. package/lib/ocaml/char.cmi +0 -0
  168. package/lib/ocaml/char.cmt +0 -0
  169. package/lib/ocaml/char.cmti +0 -0
  170. package/lib/ocaml/complex.cmi +0 -0
  171. package/lib/ocaml/complex.cmt +0 -0
  172. package/lib/ocaml/complex.cmti +0 -0
  173. package/lib/ocaml/digest.cmi +0 -0
  174. package/lib/ocaml/digest.cmt +0 -0
  175. package/lib/ocaml/digest.cmti +0 -0
  176. package/lib/ocaml/dom.cmt +0 -0
  177. package/lib/ocaml/dom_storage.cmt +0 -0
  178. package/lib/ocaml/dom_storage2.cmt +0 -0
  179. package/lib/ocaml/filename.cmi +0 -0
  180. package/lib/ocaml/filename.cmt +0 -0
  181. package/lib/ocaml/filename.cmti +0 -0
  182. package/lib/ocaml/genlex.cmi +0 -0
  183. package/lib/ocaml/genlex.cmt +0 -0
  184. package/lib/ocaml/genlex.cmti +0 -0
  185. package/lib/ocaml/hashtbl.cmi +0 -0
  186. package/lib/ocaml/hashtbl.cmt +0 -0
  187. package/lib/ocaml/hashtbl.cmti +0 -0
  188. package/lib/ocaml/hashtblLabels.cmi +0 -0
  189. package/lib/ocaml/hashtblLabels.cmt +0 -0
  190. package/lib/ocaml/int32.cmi +0 -0
  191. package/lib/ocaml/int32.cmt +0 -0
  192. package/lib/ocaml/int32.cmti +0 -0
  193. package/lib/ocaml/int64.cmi +0 -0
  194. package/lib/ocaml/int64.cmt +0 -0
  195. package/lib/ocaml/int64.cmti +0 -0
  196. package/lib/ocaml/js.cmi +0 -0
  197. package/lib/ocaml/js.cmt +0 -0
  198. package/lib/ocaml/js.ml +3 -0
  199. package/lib/ocaml/js_OO.cmt +0 -0
  200. package/lib/ocaml/js_array.cmt +0 -0
  201. package/lib/ocaml/js_array2.cmt +0 -0
  202. package/lib/ocaml/js_bigint.cmt +0 -0
  203. package/lib/ocaml/js_cast.cmt +0 -0
  204. package/lib/ocaml/js_cast.cmti +0 -0
  205. package/lib/ocaml/js_console.cmt +0 -0
  206. package/lib/ocaml/js_date.cmt +0 -0
  207. package/lib/ocaml/js_dict.cmi +0 -0
  208. package/lib/ocaml/js_dict.cmt +0 -0
  209. package/lib/ocaml/js_dict.cmti +0 -0
  210. package/lib/ocaml/js_exn.cmt +0 -0
  211. package/lib/ocaml/js_exn.cmti +0 -0
  212. package/lib/ocaml/js_float.cmt +0 -0
  213. package/lib/ocaml/js_global.cmt +0 -0
  214. package/lib/ocaml/js_int.cmt +0 -0
  215. package/lib/ocaml/js_json.cmi +0 -0
  216. package/lib/ocaml/js_json.cmt +0 -0
  217. package/lib/ocaml/js_json.cmti +0 -0
  218. package/lib/ocaml/js_list.cmi +0 -0
  219. package/lib/ocaml/js_list.cmt +0 -0
  220. package/lib/ocaml/js_list.cmti +0 -0
  221. package/lib/ocaml/js_map.cmt +0 -0
  222. package/lib/ocaml/js_mapperRt.cmt +0 -0
  223. package/lib/ocaml/js_mapperRt.cmti +0 -0
  224. package/lib/ocaml/js_math.cmi +0 -0
  225. package/lib/ocaml/js_math.cmt +0 -0
  226. package/lib/ocaml/js_math.ml +1 -1
  227. package/lib/ocaml/js_null.cmi +0 -0
  228. package/lib/ocaml/js_null.cmt +0 -0
  229. package/lib/ocaml/js_null.cmti +0 -0
  230. package/lib/ocaml/js_null_undefined.cmi +0 -0
  231. package/lib/ocaml/js_null_undefined.cmt +0 -0
  232. package/lib/ocaml/js_null_undefined.cmti +0 -0
  233. package/lib/ocaml/js_obj.cmt +0 -0
  234. package/lib/ocaml/js_option.cmi +0 -0
  235. package/lib/ocaml/js_option.cmt +0 -0
  236. package/lib/ocaml/js_option.cmti +0 -0
  237. package/lib/ocaml/js_promise.cmi +0 -0
  238. package/lib/ocaml/js_promise.cmt +0 -0
  239. package/lib/ocaml/js_promise.ml +19 -19
  240. package/lib/ocaml/js_promise2.cmi +0 -0
  241. package/lib/ocaml/js_promise2.cmt +0 -0
  242. package/lib/ocaml/js_promise2.res +58 -0
  243. package/lib/ocaml/js_re.cmi +0 -0
  244. package/lib/ocaml/js_re.cmt +0 -0
  245. package/lib/ocaml/js_result.cmt +0 -0
  246. package/lib/ocaml/js_result.cmti +0 -0
  247. package/lib/ocaml/js_set.cmt +0 -0
  248. package/lib/ocaml/js_string.cmi +0 -0
  249. package/lib/ocaml/js_string.cmt +0 -0
  250. package/lib/ocaml/js_string2.cmi +0 -0
  251. package/lib/ocaml/js_string2.cmt +0 -0
  252. package/lib/ocaml/js_typed_array.cmi +0 -0
  253. package/lib/ocaml/js_typed_array.cmt +0 -0
  254. package/lib/ocaml/js_typed_array2.cmi +0 -0
  255. package/lib/ocaml/js_typed_array2.cmt +0 -0
  256. package/lib/ocaml/js_types.cmt +0 -0
  257. package/lib/ocaml/js_types.cmti +0 -0
  258. package/lib/ocaml/js_undefined.cmi +0 -0
  259. package/lib/ocaml/js_undefined.cmt +0 -0
  260. package/lib/ocaml/js_undefined.cmti +0 -0
  261. package/lib/ocaml/js_vector.cmi +0 -0
  262. package/lib/ocaml/js_vector.cmt +0 -0
  263. package/lib/ocaml/js_vector.cmti +0 -0
  264. package/lib/ocaml/js_weakmap.cmt +0 -0
  265. package/lib/ocaml/js_weakset.cmt +0 -0
  266. package/lib/ocaml/jsx.cmi +0 -0
  267. package/lib/ocaml/jsx.cmt +0 -0
  268. package/lib/ocaml/{jsx.ml → jsx.res} +13 -12
  269. package/lib/ocaml/jsxDOM.cmi +0 -0
  270. package/lib/ocaml/jsxDOM.cmt +0 -0
  271. package/lib/ocaml/jsxDOM.res +620 -0
  272. package/lib/ocaml/jsxDOMStyle.cmi +0 -0
  273. package/lib/ocaml/jsxDOMStyle.cmt +0 -0
  274. package/lib/ocaml/jsxDOMStyle.ml +4 -0
  275. package/lib/ocaml/jsxEvent.cmt +0 -0
  276. package/lib/ocaml/jsxPPXReactSupport.cmi +0 -0
  277. package/lib/ocaml/jsxPPXReactSupport.cmt +0 -0
  278. package/{scripts/LICENSE.ml → lib/ocaml/jsxPPXReactSupport.res} +25 -4
  279. package/lib/ocaml/lazy.cmi +0 -0
  280. package/lib/ocaml/lazy.cmt +0 -0
  281. package/lib/ocaml/lazy.cmti +0 -0
  282. package/lib/ocaml/lexing.cmi +0 -0
  283. package/lib/ocaml/lexing.cmt +0 -0
  284. package/lib/ocaml/lexing.cmti +0 -0
  285. package/lib/ocaml/list.cmi +0 -0
  286. package/lib/ocaml/list.cmt +0 -0
  287. package/lib/ocaml/list.cmti +0 -0
  288. package/lib/ocaml/listLabels.cmi +0 -0
  289. package/lib/ocaml/listLabels.cmt +0 -0
  290. package/lib/ocaml/listLabels.cmti +0 -0
  291. package/lib/ocaml/map.cmi +0 -0
  292. package/lib/ocaml/map.cmt +0 -0
  293. package/lib/ocaml/map.cmti +0 -0
  294. package/lib/ocaml/mapLabels.cmi +0 -0
  295. package/lib/ocaml/mapLabels.cmt +0 -0
  296. package/lib/ocaml/moreLabels.cmi +0 -0
  297. package/lib/ocaml/moreLabels.cmt +0 -0
  298. package/lib/ocaml/moreLabels.cmti +0 -0
  299. package/lib/ocaml/node.cmi +0 -0
  300. package/lib/ocaml/node.cmt +0 -0
  301. package/lib/ocaml/node_buffer.cmi +0 -0
  302. package/lib/ocaml/node_buffer.cmt +0 -0
  303. package/lib/ocaml/node_child_process.cmi +0 -0
  304. package/lib/ocaml/node_child_process.cmt +0 -0
  305. package/lib/ocaml/node_fs.cmi +0 -0
  306. package/lib/ocaml/node_fs.cmt +0 -0
  307. package/lib/ocaml/node_module.cmi +0 -0
  308. package/lib/ocaml/node_module.cmt +0 -0
  309. package/lib/ocaml/node_path.cmt +0 -0
  310. package/lib/ocaml/node_process.cmi +0 -0
  311. package/lib/ocaml/node_process.cmt +0 -0
  312. package/lib/ocaml/node_process.cmti +0 -0
  313. package/lib/ocaml/obj.cmi +0 -0
  314. package/lib/ocaml/obj.cmt +0 -0
  315. package/lib/ocaml/obj.cmti +0 -0
  316. package/lib/ocaml/parsing.cmi +0 -0
  317. package/lib/ocaml/parsing.cmt +0 -0
  318. package/lib/ocaml/parsing.cmti +0 -0
  319. package/lib/ocaml/pervasives.cmi +0 -0
  320. package/lib/ocaml/pervasives.cmt +0 -0
  321. package/lib/ocaml/pervasives.cmti +0 -0
  322. package/lib/ocaml/printexc.cmi +0 -0
  323. package/lib/ocaml/printexc.cmt +0 -0
  324. package/lib/ocaml/printexc.cmti +0 -0
  325. package/lib/ocaml/printexc.ml +28 -32
  326. package/lib/ocaml/queue.cmi +0 -0
  327. package/lib/ocaml/queue.cmt +0 -0
  328. package/lib/ocaml/queue.cmti +0 -0
  329. package/lib/ocaml/random.cmi +0 -0
  330. package/lib/ocaml/random.cmt +0 -0
  331. package/lib/ocaml/random.cmti +0 -0
  332. package/lib/ocaml/set.cmi +0 -0
  333. package/lib/ocaml/set.cmt +0 -0
  334. package/lib/ocaml/set.cmti +0 -0
  335. package/lib/ocaml/setLabels.cmi +0 -0
  336. package/lib/ocaml/setLabels.cmt +0 -0
  337. package/lib/ocaml/sort.cmi +0 -0
  338. package/lib/ocaml/sort.cmt +0 -0
  339. package/lib/ocaml/sort.cmti +0 -0
  340. package/lib/ocaml/stack.cmi +0 -0
  341. package/lib/ocaml/stack.cmt +0 -0
  342. package/lib/ocaml/stack.cmti +0 -0
  343. package/lib/ocaml/stdLabels.cmi +0 -0
  344. package/lib/ocaml/stdLabels.cmt +0 -0
  345. package/lib/ocaml/stdLabels.cmti +0 -0
  346. package/lib/ocaml/stream.cmi +0 -0
  347. package/lib/ocaml/stream.cmt +0 -0
  348. package/lib/ocaml/stream.cmti +0 -0
  349. package/lib/ocaml/string.cmi +0 -0
  350. package/lib/ocaml/string.cmt +0 -0
  351. package/lib/ocaml/string.cmti +0 -0
  352. package/lib/ocaml/stringLabels.cmi +0 -0
  353. package/lib/ocaml/stringLabels.cmt +0 -0
  354. package/lib/ocaml/stringLabels.cmti +0 -0
  355. package/lib/ocaml/sys.cmi +0 -0
  356. package/lib/ocaml/sys.cmt +0 -0
  357. package/lib/ocaml/sys.cmti +0 -0
  358. package/lib/ocaml/uchar.cmi +0 -0
  359. package/lib/ocaml/uchar.cmt +0 -0
  360. package/lib/ocaml/uchar.cmti +0 -0
  361. package/package.json +2 -1
  362. package/scripts/buildNinjaBinary.js +29 -0
  363. package/scripts/install.js +7 -3
  364. package/scripts/installUtils.js +9 -1
  365. package/scripts/rescript_arg.js +2 -4
  366. package/scripts/rescript_format.js +73 -39
  367. package/win32/refmt.exe +0 -0
  368. package/darwin/bsb_helper.exe +0 -0
  369. package/darwin/bsc.exe +0 -0
  370. package/darwin/ninja.COPYING +0 -202
  371. package/darwin/ninja.exe +0 -0
  372. package/darwin/rescript.exe +0 -0
  373. package/darwinarm64/ninja.COPYING +0 -202
  374. package/freebsd/ninja.COPYING +0 -202
  375. package/lib/ocaml/jsxDOM.ml +0 -2087
  376. package/linux/bsb_helper.exe +0 -0
  377. package/linux/bsc.exe +0 -0
  378. package/linux/ninja.COPYING +0 -202
  379. package/linux/ninja.exe +0 -0
  380. package/linux/rescript.exe +0 -0
  381. package/openbsd/.keep +0 -0
  382. package/scripts/buckle_lto.js +0 -55
  383. package/scripts/build_sorted.ml +0 -233
  384. package/scripts/caml_oo_curry_gen.ml +0 -71
  385. package/scripts/checkUnused.js +0 -63
  386. package/scripts/ciTest.js +0 -172
  387. package/scripts/cover.sh +0 -3
  388. package/scripts/curry_gen.ml +0 -167
  389. package/scripts/dbg +0 -13
  390. package/scripts/dedupe.js +0 -44
  391. package/scripts/doc_gen.js +0 -117
  392. package/scripts/js_internal_gen.js +0 -135
  393. package/scripts/jsconfig.json +0 -12
  394. package/scripts/littlecase.js +0 -21
  395. package/scripts/ninja.js +0 -1980
  396. package/scripts/pack.js +0 -107
  397. package/scripts/prebuilt.js +0 -99
  398. package/scripts/release.js +0 -41
  399. package/scripts/repl.js +0 -151
  400. package/scripts/shake.js +0 -138
  401. package/scripts/tasks.js +0 -149
  402. package/scripts/test.sh +0 -3
  403. package/scripts/tmp.js +0 -98
  404. package/scripts/validate.js +0 -41
  405. package/vendor/ninja.tar.gz +0 -0
  406. package/win32/bsb_helper.exe +0 -0
  407. package/win32/bsc.exe +0 -0
  408. package/win32/ninja.COPYING +0 -202
  409. package/win32/ninja.exe +0 -0
  410. package/win32/rescript.exe +0 -0
@@ -4,6 +4,19 @@ import * as Curry from "./curry.js";
4
4
  import * as Belt_Array from "./belt_Array.js";
5
5
  import * as Caml_option from "./caml_option.js";
6
6
 
7
+ function copyBucket(c) {
8
+ if (c === undefined) {
9
+ return c;
10
+ }
11
+ var head = {
12
+ key: c.key,
13
+ value: c.value,
14
+ next: undefined
15
+ };
16
+ copyAuxCont(c.next, head);
17
+ return head;
18
+ }
19
+
7
20
  function copyAuxCont(_c, _prec) {
8
21
  while(true) {
9
22
  var prec = _prec;
@@ -23,19 +36,6 @@ function copyAuxCont(_c, _prec) {
23
36
  };
24
37
  }
25
38
 
26
- function copyBucket(c) {
27
- if (c === undefined) {
28
- return c;
29
- }
30
- var head = {
31
- key: c.key,
32
- value: c.value,
33
- next: undefined
34
- };
35
- copyAuxCont(c.next, head);
36
- return head;
37
- }
38
-
39
39
  function copyBuckets(buckets) {
40
40
  var len = buckets.length;
41
41
  var newBuckets = new Array(len);
@@ -29,8 +29,8 @@ function modf_float(x) {
29
29
  var f = x$1 - i;
30
30
  if (neg) {
31
31
  return [
32
- -f,
33
- -i
32
+ - f,
33
+ - i
34
34
  ];
35
35
  } else {
36
36
  return [
@@ -68,13 +68,13 @@ function frexp_float(x) {
68
68
  var neg = x < 0;
69
69
  var x$p = Math.abs(x);
70
70
  var exp = Math.floor(Math.LOG2E * Math.log(x$p)) + 1;
71
- x$p = x$p * Math.pow(2, -exp);
71
+ x$p = x$p * Math.pow(2, - exp);
72
72
  if (x$p < 0.5) {
73
73
  x$p = x$p * 2;
74
74
  exp = exp - 1;
75
75
  }
76
76
  if (neg) {
77
- x$p = -x$p;
77
+ x$p = - x$p;
78
78
  }
79
79
  return [
80
80
  x$p,
@@ -86,7 +86,7 @@ function copysign_float(x, y) {
86
86
  var x$1 = Math.abs(x);
87
87
  var y$1 = y === 0 ? 1 / y : y;
88
88
  if (y$1 < 0) {
89
- return -x$1;
89
+ return - x$1;
90
90
  } else {
91
91
  return x$1;
92
92
  }
@@ -654,7 +654,7 @@ function int64_format(fmt, x) {
654
654
  function format_float(fmt, x) {
655
655
  var f = parse_format(fmt);
656
656
  var prec = f.prec < 0 ? 6 : f.prec;
657
- var x$1 = x < 0 ? (f.sign = -1, -x) : x;
657
+ var x$1 = x < 0 ? (f.sign = -1, - x) : x;
658
658
  var s = "";
659
659
  if (isNaN(x$1)) {
660
660
  s = "nan";
@@ -320,7 +320,7 @@ function of_float(x) {
320
320
  return max_int;
321
321
  }
322
322
  if (x < 0) {
323
- return neg(of_float(-x));
323
+ return neg(of_float(- x));
324
324
  }
325
325
  var hi = x / 4294967296 | 0;
326
326
  var lo = x % 4294967296 | 0;
@@ -59,7 +59,7 @@ function compare(a, b) {
59
59
  break;
60
60
  case "number" :
61
61
  if (b_type === "number") {
62
- return Caml.int_compare(a, b);
62
+ return Caml.float_compare(a, b);
63
63
  }
64
64
  break;
65
65
  case "string" :
@@ -359,23 +359,43 @@ function equal_nullable(x, y) {
359
359
  }
360
360
 
361
361
  function notequal(a, b) {
362
- return !equal(a, b);
362
+ if (typeof a === "number" && typeof b === "number") {
363
+ return a !== b;
364
+ } else {
365
+ return !equal(a, b);
366
+ }
363
367
  }
364
368
 
365
369
  function greaterequal(a, b) {
366
- return compare(a, b) >= 0;
370
+ if (typeof a === "number" && typeof b === "number") {
371
+ return a >= b;
372
+ } else {
373
+ return compare(a, b) >= 0;
374
+ }
367
375
  }
368
376
 
369
377
  function greaterthan(a, b) {
370
- return compare(a, b) > 0;
378
+ if (typeof a === "number" && typeof b === "number") {
379
+ return a > b;
380
+ } else {
381
+ return compare(a, b) > 0;
382
+ }
371
383
  }
372
384
 
373
385
  function lessequal(a, b) {
374
- return compare(a, b) <= 0;
386
+ if (typeof a === "number" && typeof b === "number") {
387
+ return a <= b;
388
+ } else {
389
+ return compare(a, b) <= 0;
390
+ }
375
391
  }
376
392
 
377
393
  function lessthan(a, b) {
378
- return compare(a, b) < 0;
394
+ if (typeof a === "number" && typeof b === "number") {
395
+ return a < b;
396
+ } else {
397
+ return compare(a, b) < 0;
398
+ }
379
399
  }
380
400
 
381
401
  function min(x, y) {
@@ -22,15 +22,15 @@ function sub(x, y) {
22
22
 
23
23
  function neg(x) {
24
24
  return {
25
- re: -x.re,
26
- im: -x.im
25
+ re: - x.re,
26
+ im: - x.im
27
27
  };
28
28
  }
29
29
 
30
30
  function conj(x) {
31
31
  return {
32
32
  re: x.re,
33
- im: -x.im
33
+ im: - x.im
34
34
  };
35
35
  }
36
36
 
@@ -119,7 +119,7 @@ function sqrt(x) {
119
119
  } else {
120
120
  return {
121
121
  re: 0.5 * i / w,
122
- im: x.im >= 0.0 ? w : -w
122
+ im: x.im >= 0.0 ? w : - w
123
123
  };
124
124
  }
125
125
  }
package/lib/es6/js.js CHANGED
@@ -29,6 +29,8 @@ var Re;
29
29
 
30
30
  var $$Promise;
31
31
 
32
+ var Promise2;
33
+
32
34
  var $$Date;
33
35
 
34
36
  var Dict;
@@ -86,6 +88,7 @@ export {
86
88
  String2 ,
87
89
  Re ,
88
90
  $$Promise ,
91
+ Promise2 ,
89
92
  $$Date ,
90
93
  Dict ,
91
94
  Global ,
@@ -0,0 +1,16 @@
1
+
2
+
3
+
4
+ var then = (function(p, cont) {
5
+ return Promise.resolve(p).then(cont)
6
+ });
7
+
8
+ var $$catch = (function(p, cont) {
9
+ return Promise.resolve(p).catch(cont)
10
+ });
11
+
12
+ export {
13
+ then ,
14
+ $$catch ,
15
+ }
16
+ /* No side effect */
@@ -0,0 +1,26 @@
1
+
2
+
3
+ import * as React from "react";
4
+ import * as Caml_splice_call from "./caml_splice_call.js";
5
+
6
+ function createElementWithKey(key, component, props) {
7
+ return React.createElement(component, key !== undefined ? Object.assign({}, props, {
8
+ key: key
9
+ }) : props);
10
+ }
11
+
12
+ function createElementVariadicWithKey(key, component, props, elements) {
13
+ return Caml_splice_call.spliceApply(React.createElement, [
14
+ component,
15
+ key !== undefined ? Object.assign({}, props, {
16
+ key: key
17
+ }) : props,
18
+ elements
19
+ ]);
20
+ }
21
+
22
+ export {
23
+ createElementWithKey ,
24
+ createElementVariadicWithKey ,
25
+ }
26
+ /* react Not a pure module */
@@ -4,6 +4,19 @@ var Curry = require("./curry.js");
4
4
  var Belt_Array = require("./belt_Array.js");
5
5
  var Caml_option = require("./caml_option.js");
6
6
 
7
+ function copyBucket(c) {
8
+ if (c === undefined) {
9
+ return c;
10
+ }
11
+ var head = {
12
+ key: c.key,
13
+ value: c.value,
14
+ next: undefined
15
+ };
16
+ copyAuxCont(c.next, head);
17
+ return head;
18
+ }
19
+
7
20
  function copyAuxCont(_c, _prec) {
8
21
  while(true) {
9
22
  var prec = _prec;
@@ -23,19 +36,6 @@ function copyAuxCont(_c, _prec) {
23
36
  };
24
37
  }
25
38
 
26
- function copyBucket(c) {
27
- if (c === undefined) {
28
- return c;
29
- }
30
- var head = {
31
- key: c.key,
32
- value: c.value,
33
- next: undefined
34
- };
35
- copyAuxCont(c.next, head);
36
- return head;
37
- }
38
-
39
39
  function copyBuckets(buckets) {
40
40
  var len = buckets.length;
41
41
  var newBuckets = new Array(len);
@@ -29,8 +29,8 @@ function modf_float(x) {
29
29
  var f = x$1 - i;
30
30
  if (neg) {
31
31
  return [
32
- -f,
33
- -i
32
+ - f,
33
+ - i
34
34
  ];
35
35
  } else {
36
36
  return [
@@ -68,13 +68,13 @@ function frexp_float(x) {
68
68
  var neg = x < 0;
69
69
  var x$p = Math.abs(x);
70
70
  var exp = Math.floor(Math.LOG2E * Math.log(x$p)) + 1;
71
- x$p = x$p * Math.pow(2, -exp);
71
+ x$p = x$p * Math.pow(2, - exp);
72
72
  if (x$p < 0.5) {
73
73
  x$p = x$p * 2;
74
74
  exp = exp - 1;
75
75
  }
76
76
  if (neg) {
77
- x$p = -x$p;
77
+ x$p = - x$p;
78
78
  }
79
79
  return [
80
80
  x$p,
@@ -86,7 +86,7 @@ function copysign_float(x, y) {
86
86
  var x$1 = Math.abs(x);
87
87
  var y$1 = y === 0 ? 1 / y : y;
88
88
  if (y$1 < 0) {
89
- return -x$1;
89
+ return - x$1;
90
90
  } else {
91
91
  return x$1;
92
92
  }
@@ -654,7 +654,7 @@ function int64_format(fmt, x) {
654
654
  function format_float(fmt, x) {
655
655
  var f = parse_format(fmt);
656
656
  var prec = f.prec < 0 ? 6 : f.prec;
657
- var x$1 = x < 0 ? (f.sign = -1, -x) : x;
657
+ var x$1 = x < 0 ? (f.sign = -1, - x) : x;
658
658
  var s = "";
659
659
  if (isNaN(x$1)) {
660
660
  s = "nan";
@@ -320,7 +320,7 @@ function of_float(x) {
320
320
  return max_int;
321
321
  }
322
322
  if (x < 0) {
323
- return neg(of_float(-x));
323
+ return neg(of_float(- x));
324
324
  }
325
325
  var hi = x / 4294967296 | 0;
326
326
  var lo = x % 4294967296 | 0;
@@ -59,7 +59,7 @@ function compare(a, b) {
59
59
  break;
60
60
  case "number" :
61
61
  if (b_type === "number") {
62
- return Caml.int_compare(a, b);
62
+ return Caml.float_compare(a, b);
63
63
  }
64
64
  break;
65
65
  case "string" :
@@ -359,23 +359,43 @@ function equal_nullable(x, y) {
359
359
  }
360
360
 
361
361
  function notequal(a, b) {
362
- return !equal(a, b);
362
+ if (typeof a === "number" && typeof b === "number") {
363
+ return a !== b;
364
+ } else {
365
+ return !equal(a, b);
366
+ }
363
367
  }
364
368
 
365
369
  function greaterequal(a, b) {
366
- return compare(a, b) >= 0;
370
+ if (typeof a === "number" && typeof b === "number") {
371
+ return a >= b;
372
+ } else {
373
+ return compare(a, b) >= 0;
374
+ }
367
375
  }
368
376
 
369
377
  function greaterthan(a, b) {
370
- return compare(a, b) > 0;
378
+ if (typeof a === "number" && typeof b === "number") {
379
+ return a > b;
380
+ } else {
381
+ return compare(a, b) > 0;
382
+ }
371
383
  }
372
384
 
373
385
  function lessequal(a, b) {
374
- return compare(a, b) <= 0;
386
+ if (typeof a === "number" && typeof b === "number") {
387
+ return a <= b;
388
+ } else {
389
+ return compare(a, b) <= 0;
390
+ }
375
391
  }
376
392
 
377
393
  function lessthan(a, b) {
378
- return compare(a, b) < 0;
394
+ if (typeof a === "number" && typeof b === "number") {
395
+ return a < b;
396
+ } else {
397
+ return compare(a, b) < 0;
398
+ }
379
399
  }
380
400
 
381
401
  function min(x, y) {
package/lib/js/complex.js CHANGED
@@ -22,15 +22,15 @@ function sub(x, y) {
22
22
 
23
23
  function neg(x) {
24
24
  return {
25
- re: -x.re,
26
- im: -x.im
25
+ re: - x.re,
26
+ im: - x.im
27
27
  };
28
28
  }
29
29
 
30
30
  function conj(x) {
31
31
  return {
32
32
  re: x.re,
33
- im: -x.im
33
+ im: - x.im
34
34
  };
35
35
  }
36
36
 
@@ -119,7 +119,7 @@ function sqrt(x) {
119
119
  } else {
120
120
  return {
121
121
  re: 0.5 * i / w,
122
- im: x.im >= 0.0 ? w : -w
122
+ im: x.im >= 0.0 ? w : - w
123
123
  };
124
124
  }
125
125
  }
package/lib/js/js.js CHANGED
@@ -29,6 +29,8 @@ var Re;
29
29
 
30
30
  var $$Promise;
31
31
 
32
+ var Promise2;
33
+
32
34
  var $$Date;
33
35
 
34
36
  var Dict;
@@ -85,6 +87,7 @@ exports.$$String = $$String;
85
87
  exports.String2 = String2;
86
88
  exports.Re = Re;
87
89
  exports.$$Promise = $$Promise;
90
+ exports.Promise2 = Promise2;
88
91
  exports.$$Date = $$Date;
89
92
  exports.Dict = Dict;
90
93
  exports.Global = Global;
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+
4
+ var then = (function(p, cont) {
5
+ return Promise.resolve(p).then(cont)
6
+ });
7
+
8
+ var $$catch = (function(p, cont) {
9
+ return Promise.resolve(p).catch(cont)
10
+ });
11
+
12
+ exports.then = then;
13
+ exports.$$catch = $$catch;
14
+ /* No side effect */
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var React = require("react");
4
+ var Caml_splice_call = require("./caml_splice_call.js");
5
+
6
+ function createElementWithKey(key, component, props) {
7
+ return React.createElement(component, key !== undefined ? Object.assign({}, props, {
8
+ key: key
9
+ }) : props);
10
+ }
11
+
12
+ function createElementVariadicWithKey(key, component, props, elements) {
13
+ return Caml_splice_call.spliceApply(React.createElement, [
14
+ component,
15
+ key !== undefined ? Object.assign({}, props, {
16
+ key: key
17
+ }) : props,
18
+ elements
19
+ ]);
20
+ }
21
+
22
+ exports.createElementWithKey = createElementWithKey;
23
+ exports.createElementVariadicWithKey = createElementVariadicWithKey;
24
+ /* react Not a pure module */
package/lib/ocaml/arg.cmi CHANGED
Binary file
package/lib/ocaml/arg.cmt CHANGED
Binary file
Binary file
package/lib/ocaml/arg.ml CHANGED
@@ -81,9 +81,9 @@ let print_spec buf (key, spec, doc) =
81
81
  match spec with
82
82
  | Symbol (l, _) ->
83
83
  let sym = make_symlist "{" "|" "}" l in
84
- Buffer.add_string buf {j| $(key) $(sym)$(doc)\n|j}
84
+ Buffer.add_string buf (((((" " ^ key) ^ " ") ^ sym) ^ doc) ^ "\n")
85
85
  | _ ->
86
- Buffer.add_string buf {j| $(key) $(doc)\n|j}
86
+ Buffer.add_string buf ((((" " ^ key) ^ " ") ^ doc) ^ "\n")
87
87
 
88
88
 
89
89
 
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file