From 74123268ec572b2e4eb6cf709aac7e1d7f900721 Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Sun, 9 Jan 2022 04:23:41 +0300 Subject: [PATCH 1/8] WIP: Type information in Rescript syntax in Docs --- .circleci/config.yml | 1 + .gitignore | 3 +- ocamldoc-json-generator/JsonGenerator.ml | 238 ++++-- ocamldoc-json-generator/Makefile | 20 +- ocamldoc-json-generator/esy.json | 6 +- ocamldoc-json-generator/readme.md | 6 +- rescript/src/TableclothMap.ml | 8 +- rescript/src/TableclothMap.mli | 8 +- rescript/src/TableclothSet.ml | 8 +- rescript/src/TableclothSet.mli | 8 +- website/model-rescript.json | 998 ++++++++++++----------- 11 files changed, 739 insertions(+), 565 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 478a7e09..b6c4f8f1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -104,6 +104,7 @@ jobs: - run: npm install -g esy - run: cd ocamldoc-json-generator && make init-node - run: cd ocamldoc-json-generator && ~/.npm-global/bin/esy + - run: cd ocamldoc-json-generator && make rescript-interfaces - run: cd ocamldoc-json-generator && make doc # Check that model.json has been regenerated when there are changes in the interface files - run: git diff --exit-code website/model.json diff --git a/.gitignore b/.gitignore index 5aa4012c..2f2d52a7 100644 --- a/.gitignore +++ b/.gitignore @@ -21,4 +21,5 @@ _esy .sourcedirs.json /ocamldoc-json-generator/dune.bsb /ocamldoc-json-generator/dune-project -/ocamldoc-json-generator/dune \ No newline at end of file +/ocamldoc-json-generator/dune +_opam/ \ No newline at end of file diff --git a/ocamldoc-json-generator/JsonGenerator.ml b/ocamldoc-json-generator/JsonGenerator.ml index d4168af5..72226ef1 100644 --- a/ocamldoc-json-generator/JsonGenerator.ml +++ b/ocamldoc-json-generator/JsonGenerator.ml @@ -922,91 +922,154 @@ class json = Odoc_info.string_of_type_expr t |> Odoc_info.remove_ending_newline in (* - let raw = - match desc with - | Tvar tvar -> - tagged "Var" (nullable string tvar) - | Tnil -> - tagged "Nil" null - | Ttuple components -> - tagged "Tuple" (array self#json_of_type_expr components) - | Tarrow (label, from, to_, _commutable) -> - tagged - "Arrow" - (obj - [ ( "label" - , match label with - | Nolabel -> - tagged "Nolabel" null - | Labelled label -> - tagged "Labelled" (string label) - | Optional label -> - tagged "Optional" (string label) ) - ; ("from", self#json_of_type_expr from) - ; ("to", self#json_of_type_expr to_) - (* ("commutable", - match commutable with - | Cok -> tagged "Ok" null - | Cunknown -> tagged "Unknown" null - | Clink (link : Types.commutable ref) -> tagged "Link" null - ) *) - ]) - | Tconstr - ( (path : Path.t) - , (ts : Types.type_expr list) - , (_am : Types.abbrev_memo ref) ) -> - tagged - "Constr" - (obj - [ ("path", self#json_of_path path) - ; ("expressions", array self#json_of_type_expr ts) - ]) - | Tobject - ( (_expression : Types.type_expr) - , (_b : (Path.t * Types.type_expr list) option ref) ) -> - tagged "Object" (obj []) - | Tfield - ( _string - , _field_kind - , (_a : Types.type_expr) - , (_b : Types.type_expr) ) -> - tagged "Field" null - | Tlink type_expr -> - tagged "Link" (self#json_of_type_expr type_expr) - | Tsubst type_expr -> - tagged "Subst" (self#json_of_type_expr type_expr) - | Tvariant row_desc -> - tagged - "Variant" - (obj - [ ("fields", null) - ; ("more", self#json_of_type_expr row_desc.row_more) - ; ("bound", null) - ; ("closed", bool row_desc.row_closed) - ; ("fixed", bool row_desc.row_fixed) - ; ( "name" - , nullable - (fun ((_path : Path.t), expressions) -> - obj - [ ( "expressions" - , array self#json_of_type_expr expressions ) + let raw = + match desc with + | Tvar tvar -> + tagged "Var" (nullable string tvar) + | Tnil -> + tagged "Nil" null + | Ttuple components -> + tagged "Tuple" (array self#json_of_type_expr components) + | Tarrow (label, from, to_, _commutable) -> + tagged + "Arrow" + (obj + [ ( "label" + , match label with + | Nolabel -> + tagged "Nolabel" null + | Labelled label -> + tagged "Labelled" (string label) + | Optional label -> + tagged "Optional" (string label) ) + ; ("from", self#json_of_type_expr from) + ; ("to", self#json_of_type_expr to_) + (* ("commutable", + match commutable with + | Cok -> tagged "Ok" null + | Cunknown -> tagged "Unknown" null + | Clink (link : Types.commutable ref) -> tagged "Link" null + ) *) ]) - row_desc.row_name ) - ]) - | Tunivar (univar : string option) -> - tagged "Univar" (nullable string univar) - | Tpoly ((_ex : Types.type_expr), (_expressions : Types.type_expr list)) - -> - tagged "Poly" null - | Tpackage - ( (_path : Path.t) - , (_idents : Longident.t list) - , (_expressions : Types.type_expr list) ) -> - tagged "Package" null - in - *) + | Tconstr + ( (path : Path.t) + , (ts : Types.type_expr list) + , (_am : Types.abbrev_memo ref) ) -> + tagged + "Constr" + (obj + [ ("path", self#json_of_path path) + ; ("expressions", array self#json_of_type_expr ts) + ]) + | Tobject + ( (_expression : Types.type_expr) + , (_b : (Path.t * Types.type_expr list) option ref) ) -> + tagged "Object" (obj []) + | Tfield + ( _string + , _field_kind + , (_a : Types.type_expr) + , (_b : Types.type_expr) ) -> + tagged "Field" null + | Tlink type_expr -> + tagged "Link" (self#json_of_type_expr type_expr) + | Tsubst type_expr -> + tagged "Subst" (self#json_of_type_expr type_expr) + | Tvariant row_desc -> + tagged + "Variant" + (obj + [ ("fields", null) + ; ("more", self#json_of_type_expr row_desc.row_more) + ; ("bound", null) + ; ("closed", bool row_desc.row_closed) + ; ("fixed", bool row_desc.row_fixed) + ; ( "name" + , nullable + (fun ((_path : Path.t), expressions) -> + obj + [ ( "expressions" + , array self#json_of_type_expr expressions ) + ]) + row_desc.row_name ) + ]) + | Tunivar (univar : string option) -> + tagged "Univar" (nullable string univar) + | Tpoly ((_ex : Types.type_expr), (_expressions : Types.type_expr list)) + -> + tagged "Poly" null + | Tpackage + ( (_path : Path.t) + , (_idents : Longident.t list) + , (_expressions : Types.type_expr list) ) -> + tagged "Package" null + in + *) obj [ ("rendered", string rendered) (* ("raw", raw) *) ] + method json_of_rescript_type_expr (moduleName : string) (funcName : string) + : Json.t = + let open Json in + (* let desc = t.desc in *) + let read_file filename = + try + let lines = ref [] in + let chan = open_in filename in + try + while true do + lines := input_line chan :: !lines + done ; + Some !lines + with + | End_of_file -> + close_in chan ; + Some (List.rev !lines) + with + | _ -> + None + in + let starts_with line funcName = + let r = Str.regexp ("^" ^ "let " ^ funcName) in + Str.string_match r line 0 + in + let fetch_rescript_type ~moduleName ~funcName = + let filename = "./_rescript/" ^ moduleName ^ ".resi" in + let result = ref [ "" ] in + let handle_line line = + match (starts_with line funcName, !result) with + | true, [ "" ] -> + result := List.append [ line ] !result + | _, "" :: rest -> + () + | _ -> + result := List.append [ line; "\n" ] !result + in + + let () = + let lines = read_file filename in + + match lines with + | Some lines -> + List.iter handle_line lines + | None -> + () + in + !result |> List.rev |> String.concat "" + in + try + let rendered = + fetch_rescript_type ~moduleName ~funcName + |> Odoc_info.remove_ending_newline + in + obj [ ("rendered", string rendered) ] + with + | _ -> + obj + [ ( "rendered" + , string ("Failed to retrieve type of: " ^ moduleName ^ funcName) + ) + ] + (** Json to display a [Types.type_expr list]. *) method json_of_cstr_args ?(par : bool option) @@ -1179,12 +1242,21 @@ class json = method json_of_value v : Json.t = let open Json in Odoc_info.reset_type_names () ; + let value_content = + match destination_json with + | "model-rescript.json" -> + self#json_of_rescript_type_expr + (Name.father v.val_name) + (Name.simple v.val_name) + | _ -> + self#json_of_type_expr v.val_type + in tagged "Value" (obj [ ("name", string (Name.simple v.val_name)) ; ("qualified_name", string v.val_name) - ; ("type", self#json_of_type_expr v.val_type) + ; ("type", value_content) ; ("info", self#json_of_info v.val_info) ; ( "parameters" , self#json_of_described_parameter_list diff --git a/ocamldoc-json-generator/Makefile b/ocamldoc-json-generator/Makefile index de53edc3..2f3109e1 100644 --- a/ocamldoc-json-generator/Makefile +++ b/ocamldoc-json-generator/Makefile @@ -147,6 +147,24 @@ build-rescript: opt dummy cp ../rescript/src/Tablecloth.ml ./_rescript/Tablecloth.ml ~/.npm-global/bin/esy build +rescript-interfaces: opt dummy + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothBool.mli > ./_rescript/TableclothBool.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothComparator.mli > ./_rescript/TableclothComparator.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothFloat.mli > ./_rescript/TableclothFloat.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothFun.mli > ./_rescript/TableclothFun.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothInt.mli > ./_rescript/TableclothInt.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothArray.mli > ./_rescript/TableclothArray.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothChar.mli > ./_rescript/TableclothChar.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothList.mli > ./_rescript/TableclothList.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothMap.mli > ./_rescript/TableclothMap.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothOption.mli > ./_rescript/TableclothOption.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothResult.mli > ./_rescript/TableclothResult.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothSet.mli > ./_rescript/TableclothSet.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothString.mli > ./_rescript/TableclothString.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothTuple2.mli > ./_rescript/TableclothTuple2.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothTuple3.mli > ./_rescript/TableclothTuple3.resi + + doc-native: build-native DESTINATION_JSON=model.json \ ~/.npm-global/bin/esy ocamldoc.opt \ @@ -234,6 +252,6 @@ doc-rescript: build-rescript doc: doc-native doc-rescript clean: - rm -f _rescript/* *.cm* *.o *.a + rm -f _rescript/* *.cm* *.o *.a rm -f _native/* *.cm* *.o *.a diff --git a/ocamldoc-json-generator/esy.json b/ocamldoc-json-generator/esy.json index d096125a..d5ea17c9 100644 --- a/ocamldoc-json-generator/esy.json +++ b/ocamldoc-json-generator/esy.json @@ -4,7 +4,8 @@ "ocaml": "4.12.x", "melange": "melange-re/melange", "@opam/base": "v0.14.1", - "@opam/menhir": "20210419" + "@opam/menhir": "20210419", + "@opam/ocamlformat":"*" }, "esy": { "buildsInSource": "unsafe", @@ -12,7 +13,8 @@ "rm -rf node_modules/bs-platform", "ln -sfn #{melange.install} node_modules/bs-platform", "bsb -make-world" - ] + ], + "format": "dune build @fmt --auto-promote" }, "installConfig": { "pnp": false diff --git a/ocamldoc-json-generator/readme.md b/ocamldoc-json-generator/readme.md index fd14b3ff..d767700f 100644 --- a/ocamldoc-json-generator/readme.md +++ b/ocamldoc-json-generator/readme.md @@ -1,6 +1,6 @@ # Ocamldoc Json Generator -JsonGenerator.ml is responsible for taking the `/native` and `/rescript` source files and turning them into json files (`website/model.json` and `website/model-rescript.json`) which the website project then turns into the `/api` page. +JsonGenerator.ml is responsible for taking the `/native` and `/rescript` source files and turning them into json files (`website/model.json` and `website/model-rescript.json`) which the website project then turns into the `/docs` page. ## Setup To generate both native and rescript versions we'll need (esy)[https://esy.sh/docs/en/getting-started.html]. @@ -15,10 +15,10 @@ Next, install dependancies esy ``` -Then build the project files +Then generate rescript interfaces ```sh -make deps +make rescript-interfaces ``` ## Usage diff --git a/rescript/src/TableclothMap.ml b/rescript/src/TableclothMap.ml index 5c9e930a..3e914c73 100644 --- a/rescript/src/TableclothMap.ml +++ b/rescript/src/TableclothMap.ml @@ -105,7 +105,9 @@ module Poly = struct end module Int = struct - type nonrec 'value t = 'value Of(TableclothInt).t + type identity + + type nonrec 'value t = (TableclothInt.t, 'value, identity) t let fromArray a = Poly.fromArray a |> Obj.magic @@ -117,7 +119,9 @@ module Int = struct end module String = struct - type nonrec 'value t = 'value Of(TableclothString).t + type identity + + type nonrec 'value t = (TableclothString.t, 'value, identity) t let fromArray a = Poly.fromArray a |> Obj.magic diff --git a/rescript/src/TableclothMap.mli b/rescript/src/TableclothMap.mli index bf3365a9..b327b9b6 100644 --- a/rescript/src/TableclothMap.mli +++ b/rescript/src/TableclothMap.mli @@ -515,7 +515,9 @@ end (** Construct a Map with {!Int}s for keys. *) module Int : sig - type nonrec 'value t = 'value Of(TableclothInt).t + type identity + + type nonrec 'value t = (TableclothInt.t, 'value, identity) t val empty : 'value t (** A map with nothing in it. *) @@ -537,7 +539,9 @@ end (** Construct a Map with {!String}s for keys. *) module String : sig - type nonrec 'value t = 'value Of(TableclothString).t + type identity + + type nonrec 'value t = (TableclothString.t, 'value, identity) t val empty : 'value t (** A map with nothing in it. *) diff --git a/rescript/src/TableclothSet.ml b/rescript/src/TableclothSet.ml index 47c69e3f..bb670583 100644 --- a/rescript/src/TableclothSet.ml +++ b/rescript/src/TableclothSet.ml @@ -90,7 +90,9 @@ module Poly = struct end module Int = struct - type nonrec t = Of(TableclothInt).t + type identity + + type nonrec t = (TableclothInt.t, identity) t let fromArray a = Poly.fromArray a |> Obj.magic @@ -102,7 +104,9 @@ module Int = struct end module String = struct - type nonrec t = Of(TableclothString).t + type identity + + type nonrec t = (TableclothString.t, identity) t let fromArray a = Poly.fromArray a |> Obj.magic diff --git a/rescript/src/TableclothSet.mli b/rescript/src/TableclothSet.mli index ea3cb3ea..527a45d2 100644 --- a/rescript/src/TableclothSet.mli +++ b/rescript/src/TableclothSet.mli @@ -300,7 +300,9 @@ end (** Construct sets of {!Int}s *) module Int : sig - type nonrec t = Of(TableclothInt).t + type identity + + type nonrec t = (TableclothInt.t, identity) t val empty : t (** A set with nothing in it. *) @@ -332,7 +334,9 @@ end (** Construct sets of {!String}s *) module String : sig - type nonrec t = Of(TableclothString).t + type identity + + type nonrec t = (TableclothString.t, identity) t val empty : t (** A set with nothing in it. *) diff --git a/website/model-rescript.json b/website/model-rescript.json index 4e8ebec0..452de04f 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -683,7 +683,7 @@ "name": "make", "qualified_name": "TableclothTuple3.make", "type": { - "rendered": "'a -> 'b -> 'c -> 'a * 'b * 'c" + "rendered": "let make: ('a, 'b, 'c) => ('a, 'b, 'c)" }, "info": { "deprecated": null, @@ -788,7 +788,7 @@ "name": "fromArray", "qualified_name": "TableclothTuple3.fromArray", "type": { - "rendered": "'a array -> ('a * 'a * 'a) option" + "rendered": "let fromArray: array<'a> => option<('a, 'a, 'a)>" }, "info": { "deprecated": null, @@ -924,7 +924,7 @@ "name": "fromList", "qualified_name": "TableclothTuple3.fromList", "type": { - "rendered": "'a list -> ('a * 'a * 'a) option" + "rendered": "let fromList: list<'a> => option<('a, 'a, 'a)>" }, "info": { "deprecated": null, @@ -1060,7 +1060,7 @@ "name": "first", "qualified_name": "TableclothTuple3.first", "type": { - "rendered": "'a * 'b * 'c -> 'a" + "rendered": "let first: (('a, 'b, 'c)) => 'a" }, "info": { "deprecated": null, @@ -1145,7 +1145,7 @@ "name": "second", "qualified_name": "TableclothTuple3.second", "type": { - "rendered": "'a * 'b * 'c -> 'b" + "rendered": "let second: (('a, 'b, 'c)) => 'b" }, "info": { "deprecated": null, @@ -1230,7 +1230,7 @@ "name": "third", "qualified_name": "TableclothTuple3.third", "type": { - "rendered": "'a * 'b * 'c -> 'c" + "rendered": "let third: (('a, 'b, 'c)) => 'c" }, "info": { "deprecated": null, @@ -1315,7 +1315,7 @@ "name": "initial", "qualified_name": "TableclothTuple3.initial", "type": { - "rendered": "'a * 'b * 'c -> 'a * 'b" + "rendered": "let initial: (('a, 'b, 'c)) => ('a, 'b)" }, "info": { "deprecated": null, @@ -1440,7 +1440,7 @@ "name": "tail", "qualified_name": "TableclothTuple3.tail", "type": { - "rendered": "'a * 'b * 'c -> 'b * 'c" + "rendered": "let tail: (('a, 'b, 'c)) => ('b, 'c)" }, "info": { "deprecated": null, @@ -1583,7 +1583,7 @@ "name": "rotateLeft", "qualified_name": "TableclothTuple3.rotateLeft", "type": { - "rendered": "'a * 'b * 'c -> 'b * 'c * 'a" + "rendered": "let rotateLeft: (('a, 'b, 'c)) => ('b, 'c, 'a)" }, "info": { "deprecated": null, @@ -1668,7 +1668,7 @@ "name": "rotateRight", "qualified_name": "TableclothTuple3.rotateRight", "type": { - "rendered": "'a * 'b * 'c -> 'c * 'a * 'b" + "rendered": "let rotateRight: (('a, 'b, 'c)) => ('c, 'a, 'b)" }, "info": { "deprecated": null, @@ -1753,7 +1753,7 @@ "name": "mapFirst", "qualified_name": "TableclothTuple3.mapFirst", "type": { - "rendered": "'a * 'b * 'c -> f:('a -> 'x) -> 'x * 'b * 'c" + "rendered": "let mapFirst: (('a, 'b, 'c), ~f: 'a => 'x) => ('x, 'b, 'c)" }, "info": { "deprecated": null, @@ -1838,7 +1838,7 @@ "name": "mapSecond", "qualified_name": "TableclothTuple3.mapSecond", "type": { - "rendered": "'a * 'b * 'c -> f:('b -> 'y) -> 'a * 'y * 'c" + "rendered": "let mapSecond: (('a, 'b, 'c), ~f: 'b => 'y) => ('a, 'y, 'c)" }, "info": { "deprecated": null, @@ -1923,7 +1923,7 @@ "name": "mapThird", "qualified_name": "TableclothTuple3.mapThird", "type": { - "rendered": "'a * 'b * 'c -> f:('c -> 'z) -> 'a * 'b * 'z" + "rendered": "let mapThird: (('a, 'b, 'c), ~f: 'c => 'z) => ('a, 'b, 'z)" }, "info": { "deprecated": null, @@ -1997,7 +1997,7 @@ "name": "mapEach", "qualified_name": "TableclothTuple3.mapEach", "type": { - "rendered": "'a * 'b * 'c -> f:('a -> 'x) -> g:('b -> 'y) -> h:('c -> 'z) -> 'x * 'y * 'z" + "rendered": "let mapEach: (('a, 'b, 'c), ~f: 'a => 'x, ~g: 'b => 'y, ~h: 'c => 'z) => ('x, 'y, 'z)" }, "info": { "deprecated": null, @@ -2155,7 +2155,7 @@ "name": "mapAll", "qualified_name": "TableclothTuple3.mapAll", "type": { - "rendered": "'a * 'a * 'a -> f:('a -> 'b) -> 'b * 'b * 'b" + "rendered": "let mapAll: (('a, 'a, 'a), ~f: 'a => 'b) => ('b, 'b, 'b)" }, "info": { "deprecated": null, @@ -2256,7 +2256,7 @@ "name": "toArray", "qualified_name": "TableclothTuple3.toArray", "type": { - "rendered": "'a * 'a * 'a -> 'a array" + "rendered": "let toArray: (('a, 'a, 'a)) => array<'a>" }, "info": { "deprecated": null, @@ -2369,7 +2369,7 @@ "name": "toList", "qualified_name": "TableclothTuple3.toList", "type": { - "rendered": "'a * 'a * 'a -> 'a list" + "rendered": "let toList: (('a, 'a, 'a)) => list<'a>" }, "info": { "deprecated": null, @@ -2482,7 +2482,7 @@ "name": "equal", "qualified_name": "TableclothTuple3.equal", "type": { - "rendered": "('a -> 'a -> bool) ->\n ('b -> 'b -> bool) ->\n ('c -> 'c -> bool) ->\n ('a, 'b, 'c) TableclothTuple3.t -> ('a, 'b, 'c) TableclothTuple3.t -> bool" + "rendered": "let equal: (\n ('a, 'a) => bool,\n ('b, 'b) => bool,\n ('c, 'c) => bool,\n t<'a, 'b, 'c>,\n t<'a, 'b, 'c>,\n) => bool" }, "info": { "deprecated": null, @@ -2587,7 +2587,7 @@ "name": "compare", "qualified_name": "TableclothTuple3.compare", "type": { - "rendered": "('a -> 'a -> int) ->\n ('b -> 'b -> int) ->\n ('c -> 'c -> int) ->\n ('a, 'b, 'c) TableclothTuple3.t -> ('a, 'b, 'c) TableclothTuple3.t -> int" + "rendered": "let compare: (\n ('a, 'a) => int,\n ('b, 'b) => int,\n ('c, 'c) => int,\n t<'a, 'b, 'c>,\n t<'a, 'b, 'c>,\n) => int" }, "info": { "deprecated": null, @@ -2777,7 +2777,7 @@ "name": "make", "qualified_name": "TableclothTuple2.make", "type": { - "rendered": "'a -> 'b -> 'a * 'b" + "rendered": "let make: ('a, 'b) => ('a, 'b)" }, "info": { "deprecated": null, @@ -2859,7 +2859,7 @@ "name": "fromArray", "qualified_name": "TableclothTuple2.fromArray", "type": { - "rendered": "'a array -> ('a * 'a) option" + "rendered": "let fromArray: array<'a> => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -2995,7 +2995,7 @@ "name": "fromList", "qualified_name": "TableclothTuple2.fromList", "type": { - "rendered": "'a list -> ('a * 'a) option" + "rendered": "let fromList: list<'a> => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -3131,7 +3131,7 @@ "name": "first", "qualified_name": "TableclothTuple2.first", "type": { - "rendered": "'a * 'b -> 'a" + "rendered": "let first: (('a, 'b)) => 'a" }, "info": { "deprecated": null, @@ -3216,7 +3216,7 @@ "name": "second", "qualified_name": "TableclothTuple2.second", "type": { - "rendered": "'a * 'b -> 'b" + "rendered": "let second: (('a, 'b)) => 'b" }, "info": { "deprecated": null, @@ -3319,7 +3319,7 @@ "name": "mapFirst", "qualified_name": "TableclothTuple2.mapFirst", "type": { - "rendered": "'a * 'b -> f:('a -> 'x) -> 'x * 'b" + "rendered": "let mapFirst: (('a, 'b), ~f: 'a => 'x) => ('x, 'b)" }, "info": { "deprecated": null, @@ -3424,7 +3424,7 @@ "name": "mapSecond", "qualified_name": "TableclothTuple2.mapSecond", "type": { - "rendered": "'a * 'b -> f:('b -> 'c) -> 'a * 'c" + "rendered": "let mapSecond: (('a, 'b), ~f: 'b => 'c) => ('a, 'c)" }, "info": { "deprecated": null, @@ -3509,7 +3509,7 @@ "name": "mapEach", "qualified_name": "TableclothTuple2.mapEach", "type": { - "rendered": "'a * 'b -> f:('a -> 'x) -> g:('b -> 'y) -> 'x * 'y" + "rendered": "let mapEach: (('a, 'b), ~f: 'a => 'x, ~g: 'b => 'y) => ('x, 'y)" }, "info": { "deprecated": null, @@ -3610,7 +3610,7 @@ "name": "mapAll", "qualified_name": "TableclothTuple2.mapAll", "type": { - "rendered": "'a * 'a -> f:('a -> 'b) -> 'b * 'b" + "rendered": "let mapAll: (('a, 'a), ~f: 'a => 'b) => ('b, 'b)" }, "info": { "deprecated": null, @@ -3711,7 +3711,7 @@ "name": "swap", "qualified_name": "TableclothTuple2.swap", "type": { - "rendered": "'a * 'b -> 'b * 'a" + "rendered": "let swap: (('a, 'b)) => ('b, 'a)" }, "info": { "deprecated": null, @@ -3814,7 +3814,7 @@ "name": "toArray", "qualified_name": "TableclothTuple2.toArray", "type": { - "rendered": "'a * 'a -> 'a array" + "rendered": "let toArray: (('a, 'a)) => array<'a>" }, "info": { "deprecated": null, @@ -3927,7 +3927,7 @@ "name": "toList", "qualified_name": "TableclothTuple2.toList", "type": { - "rendered": "'a * 'a -> 'a list" + "rendered": "let toList: (('a, 'a)) => list<'a>" }, "info": { "deprecated": null, @@ -4012,7 +4012,7 @@ "name": "equal", "qualified_name": "TableclothTuple2.equal", "type": { - "rendered": "('a -> 'a -> bool) ->\n ('b -> 'b -> bool) ->\n ('a, 'b) TableclothTuple2.t -> ('a, 'b) TableclothTuple2.t -> bool" + "rendered": "let equal: (('a, 'a) => bool, ('b, 'b) => bool, t<'a, 'b>, t<'a, 'b>) => bool" }, "info": { "deprecated": null, @@ -4117,7 +4117,7 @@ "name": "compare", "qualified_name": "TableclothTuple2.compare", "type": { - "rendered": "('a -> 'a -> int) ->\n ('b -> 'b -> int) ->\n ('a, 'b) TableclothTuple2.t -> ('a, 'b) TableclothTuple2.t -> int" + "rendered": "let compare: (('a, 'a) => int, ('b, 'b) => int, t<'a, 'b>, t<'a, 'b>) => int" }, "info": { "deprecated": null, @@ -4866,7 +4866,7 @@ "name": "empty", "qualified_name": "TableclothSet.empty", "type": { - "rendered": "('a, 'identity) TableclothComparator.s -> ('a, 'identity) TableclothSet.t" + "rendered": "let empty: TableclothComparator.s<'a, 'identity> => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -4964,7 +4964,7 @@ "name": "singleton", "qualified_name": "TableclothSet.singleton", "type": { - "rendered": "('a, 'identity) TableclothComparator.s ->\n 'a -> ('a, 'identity) TableclothSet.t" + "rendered": "let singleton: (TableclothComparator.s<'a, 'identity>, 'a) => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -5054,7 +5054,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.fromArray", "type": { - "rendered": "('a, 'identity) TableclothComparator.s ->\n 'a array -> ('a, 'identity) TableclothSet.t" + "rendered": "let fromArray: (TableclothComparator.s<'a, 'identity>, array<'a>) => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -5144,7 +5144,7 @@ "name": "fromList", "qualified_name": "TableclothSet.fromList", "type": { - "rendered": "('a, 'identity) TableclothComparator.s ->\n 'a list -> ('a, 'identity) TableclothSet.t" + "rendered": "let fromList: (TableclothComparator.s<'a, 'identity>, list<'a>) => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -5252,7 +5252,7 @@ "name": "add", "qualified_name": "TableclothSet.add", "type": { - "rendered": "('a, 'id) TableclothSet.t -> 'a -> ('a, 'id) TableclothSet.t" + "rendered": "let add: (t<'a, 'id>, 'a) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -5337,7 +5337,7 @@ "name": "remove", "qualified_name": "TableclothSet.remove", "type": { - "rendered": "('a, 'id) TableclothSet.t -> 'a -> ('a, 'id) TableclothSet.t" + "rendered": "let remove: (t<'a, 'id>, 'a) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -5422,7 +5422,7 @@ "name": "includes", "qualified_name": "TableclothSet.includes", "type": { - "rendered": "('a, 'b) TableclothSet.t -> 'a -> bool" + "rendered": "let includes: (t<'a, _>, 'a) => bool" }, "info": { "deprecated": null, @@ -5496,7 +5496,7 @@ "name": "(.?{})", "qualified_name": "TableclothSet.(.?{})", "type": { - "rendered": "('element, 'a) TableclothSet.t -> 'element -> bool" + "rendered": "" }, "info": { "deprecated": null, @@ -5623,7 +5623,7 @@ "name": "length", "qualified_name": "TableclothSet.length", "type": { - "rendered": "('a, 'b) TableclothSet.t -> int" + "rendered": "let length: t<_, _> => int" }, "info": { "deprecated": null, @@ -5697,7 +5697,7 @@ "name": "find", "qualified_name": "TableclothSet.find", "type": { - "rendered": "('value, 'a) TableclothSet.t -> f:('value -> bool) -> 'value option" + "rendered": "let find: (t<'value, _>, ~f: 'value => bool) => option<'value>" }, "info": { "deprecated": null, @@ -5879,7 +5879,7 @@ "name": "isEmpty", "qualified_name": "TableclothSet.isEmpty", "type": { - "rendered": "('a, 'b) TableclothSet.t -> bool" + "rendered": "let isEmpty: t<_, _> => bool" }, "info": { "deprecated": null, @@ -5964,7 +5964,7 @@ "name": "any", "qualified_name": "TableclothSet.any", "type": { - "rendered": "('value, 'a) TableclothSet.t -> f:('value -> bool) -> bool" + "rendered": "let any: (t<'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -6076,7 +6076,7 @@ "name": "all", "qualified_name": "TableclothSet.all", "type": { - "rendered": "('value, 'a) TableclothSet.t -> f:('value -> bool) -> bool" + "rendered": "let all: (t<'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -6206,7 +6206,7 @@ "name": "difference", "qualified_name": "TableclothSet.difference", "type": { - "rendered": "('a, 'id) TableclothSet.t ->\n ('a, 'id) TableclothSet.t -> ('a, 'id) TableclothSet.t" + "rendered": "let difference: (t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6291,7 +6291,7 @@ "name": "intersection", "qualified_name": "TableclothSet.intersection", "type": { - "rendered": "('a, 'id) TableclothSet.t ->\n ('a, 'id) TableclothSet.t -> ('a, 'id) TableclothSet.t" + "rendered": "let intersection: (t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6365,7 +6365,7 @@ "name": "union", "qualified_name": "TableclothSet.union", "type": { - "rendered": "('a, 'id) TableclothSet.t ->\n ('a, 'id) TableclothSet.t -> ('a, 'id) TableclothSet.t" + "rendered": "let union: (t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6457,7 +6457,7 @@ "name": "filter", "qualified_name": "TableclothSet.filter", "type": { - "rendered": "('a, 'id) TableclothSet.t -> f:('a -> bool) -> ('a, 'id) TableclothSet.t" + "rendered": "let filter: (t<'a, 'id>, ~f: 'a => bool) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6547,7 +6547,7 @@ "name": "partition", "qualified_name": "TableclothSet.partition", "type": { - "rendered": "('a, 'id) TableclothSet.t ->\n f:('a -> bool) -> ('a, 'id) TableclothSet.t * ('a, 'id) TableclothSet.t" + "rendered": "let partition: (t<'a, 'id>, ~f: 'a => bool) => (t<'a, 'id>, t<'a, 'id>)" }, "info": { "deprecated": null, @@ -6661,7 +6661,7 @@ "name": "fold", "qualified_name": "TableclothSet.fold", "type": { - "rendered": "('a, 'c) TableclothSet.t -> initial:'b -> f:('b -> 'a -> 'b) -> 'b" + "rendered": "let fold: (t<'a, _>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -6771,7 +6771,7 @@ "name": "forEach", "qualified_name": "TableclothSet.forEach", "type": { - "rendered": "('a, 'b) TableclothSet.t -> f:('a -> unit) -> unit" + "rendered": "let forEach: (t<'a, _>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -6835,7 +6835,7 @@ "name": "toArray", "qualified_name": "TableclothSet.toArray", "type": { - "rendered": "('a, 'b) TableclothSet.t -> 'a array" + "rendered": "let toArray: t<'a, _> => array<'a>" }, "info": { "deprecated": null, @@ -6889,7 +6889,7 @@ "name": "toList", "qualified_name": "TableclothSet.toList", "type": { - "rendered": "('a, 'b) TableclothSet.t -> 'a list" + "rendered": "let toList: t<'a, _> => list<'a>" }, "info": { "deprecated": null, @@ -6991,7 +6991,7 @@ "name": "empty", "qualified_name": "TableclothSet.Poly.empty", "type": { - "rendered": "unit -> 'a TableclothSet.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7037,7 +7037,7 @@ "name": "singleton", "qualified_name": "TableclothSet.Poly.singleton", "type": { - "rendered": "'a -> 'a TableclothSet.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7111,7 +7111,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.Poly.fromArray", "type": { - "rendered": "'a array -> 'a TableclothSet.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7201,7 +7201,7 @@ "name": "fromList", "qualified_name": "TableclothSet.Poly.fromList", "type": { - "rendered": "'a list -> 'a TableclothSet.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7327,6 +7327,22 @@ "kind": { "tag": "ModuleStruct", "value": [ + { + "tag": "Type", + "value": { + "name": "identity", + "parameters": "", + "is_private": false, + "father": "TableclothSet.Int", + "field_comment": null, + "kind": { + "tag": "TypeAbstract", + "value": null + }, + "manifest": null, + "info": null + } + }, { "tag": "Type", "value": { @@ -7342,7 +7358,7 @@ "manifest": { "tag": "Other", "value": { - "rendered": "Of(TableclothInt).t" + "rendered": "(TableclothInt.t, TableclothSet.Int.identity) TableclothSet.t" } }, "info": null @@ -7354,7 +7370,7 @@ "name": "empty", "qualified_name": "TableclothSet.Int.empty", "type": { - "rendered": "TableclothSet.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7392,7 +7408,7 @@ "name": "singleton", "qualified_name": "TableclothSet.Int.singleton", "type": { - "rendered": "int -> TableclothSet.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7482,7 +7498,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.Int.fromArray", "type": { - "rendered": "int array -> TableclothSet.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7572,7 +7588,7 @@ "name": "fromList", "qualified_name": "TableclothSet.Int.fromList", "type": { - "rendered": "int list -> TableclothSet.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7710,6 +7726,22 @@ "kind": { "tag": "ModuleStruct", "value": [ + { + "tag": "Type", + "value": { + "name": "identity", + "parameters": "", + "is_private": false, + "father": "TableclothSet.String", + "field_comment": null, + "kind": { + "tag": "TypeAbstract", + "value": null + }, + "manifest": null, + "info": null + } + }, { "tag": "Type", "value": { @@ -7725,7 +7757,7 @@ "manifest": { "tag": "Other", "value": { - "rendered": "Of(TableclothString).t" + "rendered": "(TableclothString.t, TableclothSet.String.identity) TableclothSet.t" } }, "info": null @@ -7737,7 +7769,7 @@ "name": "empty", "qualified_name": "TableclothSet.String.empty", "type": { - "rendered": "TableclothSet.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7775,7 +7807,7 @@ "name": "singleton", "qualified_name": "TableclothSet.String.singleton", "type": { - "rendered": "string -> TableclothSet.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7865,7 +7897,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.String.fromArray", "type": { - "rendered": "string array -> TableclothSet.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -7955,7 +7987,7 @@ "name": "fromList", "qualified_name": "TableclothSet.String.fromList", "type": { - "rendered": "string list -> TableclothSet.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -8416,7 +8448,7 @@ "name": "ok", "qualified_name": "TableclothResult.ok", "type": { - "rendered": "'ok -> ('ok, 'error) TableclothResult.t" + "rendered": "let ok: 'ok => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -8549,7 +8581,7 @@ "name": "error", "qualified_name": "TableclothResult.error", "type": { - "rendered": "'error -> ('ok, 'error) TableclothResult.t" + "rendered": "let error: 'error => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -8759,7 +8791,7 @@ "name": "attempt", "qualified_name": "TableclothResult.attempt", "type": { - "rendered": "(unit -> 'ok) -> ('ok, exn) TableclothResult.t" + "rendered": "let attempt: (unit => 'ok) => t<'ok, exn>" }, "info": { "deprecated": null, @@ -8864,7 +8896,7 @@ "name": "fromOption", "qualified_name": "TableclothResult.fromOption", "type": { - "rendered": "'ok option -> error:'error -> ('ok, 'error) TableclothResult.t" + "rendered": "let fromOption: (option<'ok>, ~error: 'error) => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -9021,7 +9053,7 @@ "name": "isOk", "qualified_name": "TableclothResult.isOk", "type": { - "rendered": "('a, 'b) TableclothResult.t -> bool" + "rendered": "let isOk: t<_, _> => bool" }, "info": { "deprecated": null, @@ -9235,7 +9267,7 @@ "name": "isError", "qualified_name": "TableclothResult.isError", "type": { - "rendered": "('a, 'b) TableclothResult.t -> bool" + "rendered": "let isError: t<_, _> => bool" }, "info": { "deprecated": null, @@ -9461,7 +9493,7 @@ "name": "and_", "qualified_name": "TableclothResult.and_", "type": { - "rendered": "('ok, 'error) TableclothResult.t ->\n ('ok, 'error) TableclothResult.t -> ('ok, 'error) TableclothResult.t" + "rendered": "let and_: (t<'ok, 'error>, t<'ok, 'error>) => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -9632,7 +9664,7 @@ "name": "or_", "qualified_name": "TableclothResult.or_", "type": { - "rendered": "('ok, 'error) TableclothResult.t ->\n ('ok, 'error) TableclothResult.t -> ('ok, 'error) TableclothResult.t" + "rendered": "let or_: (t<'ok, 'error>, t<'ok, 'error>) => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -9791,7 +9823,7 @@ "name": "both", "qualified_name": "TableclothResult.both", "type": { - "rendered": "('a, 'error) TableclothResult.t ->\n ('b, 'error) TableclothResult.t -> ('a * 'b, 'error) TableclothResult.t" + "rendered": "let both: (t<'a, 'error>, t<'b, 'error>) => t<('a, 'b), 'error>" }, "info": { "deprecated": null, @@ -9970,7 +10002,7 @@ "name": "flatten", "qualified_name": "TableclothResult.flatten", "type": { - "rendered": "(('ok, 'error) TableclothResult.t, 'error) TableclothResult.t ->\n ('ok, 'error) TableclothResult.t" + "rendered": "let flatten: t, 'error> => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -10066,7 +10098,7 @@ "name": "unwrap", "qualified_name": "TableclothResult.unwrap", "type": { - "rendered": "('ok, 'error) TableclothResult.t -> default:'ok -> 'ok" + "rendered": "let unwrap: (t<'ok, 'error>, ~default: 'ok) => 'ok" }, "info": { "deprecated": null, @@ -10163,7 +10195,7 @@ "name": "unwrapUnsafe", "qualified_name": "TableclothResult.unwrapUnsafe", "type": { - "rendered": "('ok, 'a) TableclothResult.t -> 'ok" + "rendered": "let unwrapUnsafe: t<'ok, _> => 'ok" }, "info": { "deprecated": null, @@ -10285,7 +10317,7 @@ "name": "unwrapError", "qualified_name": "TableclothResult.unwrapError", "type": { - "rendered": "('ok, 'error) TableclothResult.t -> default:'error -> 'error" + "rendered": "let unwrapError: (t<'ok, 'error>, ~default: 'error) => 'error" }, "info": { "deprecated": null, @@ -10398,7 +10430,7 @@ "name": "map2", "qualified_name": "TableclothResult.map2", "type": { - "rendered": "('a, 'error) TableclothResult.t ->\n ('b, 'error) TableclothResult.t ->\n f:('a -> 'b -> 'c) -> ('c, 'error) TableclothResult.t" + "rendered": "let map2: (t<'a, 'error>, t<'b, 'error>, ~f: ('a, 'b) => 'c) => t<'c, 'error>" }, "info": { "deprecated": null, @@ -10537,7 +10569,7 @@ "name": "values", "qualified_name": "TableclothResult.values", "type": { - "rendered": "('ok, 'error) TableclothResult.t list ->\n ('ok list, 'error) TableclothResult.t" + "rendered": "let values: list> => t, 'error>" }, "info": { "deprecated": null, @@ -10667,7 +10699,7 @@ "name": "combine", "qualified_name": "TableclothResult.combine", "type": { - "rendered": "('ok, 'error) Stdlib.result list -> ('ok list, 'error) Stdlib.result" + "rendered": "let combine: list> => result, 'error>" }, "info": { "deprecated": null, @@ -10796,7 +10828,7 @@ "name": "map", "qualified_name": "TableclothResult.map", "type": { - "rendered": "('a, 'error) TableclothResult.t ->\n f:('a -> 'b) -> ('b, 'error) TableclothResult.t" + "rendered": "let map2: (t<'a, 'error>, t<'b, 'error>, ~f: ('a, 'b) => 'c) => t<'c, 'error>" }, "info": { "deprecated": null, @@ -10905,7 +10937,7 @@ "name": "mapError", "qualified_name": "TableclothResult.mapError", "type": { - "rendered": "('ok, 'a) TableclothResult.t -> f:('a -> 'b) -> ('ok, 'b) TableclothResult.t" + "rendered": "let mapError: (t<'ok, 'a>, ~f: 'a => 'b) => t<'ok, 'b>" }, "info": { "deprecated": null, @@ -11014,7 +11046,7 @@ "name": "andThen", "qualified_name": "TableclothResult.andThen", "type": { - "rendered": "('a, 'error) TableclothResult.t ->\n f:('a -> ('b, 'error) TableclothResult.t) -> ('b, 'error) TableclothResult.t" + "rendered": "let andThen: (t<'a, 'error>, ~f: 'a => t<'b, 'error>) => t<'b, 'error>" }, "info": { "deprecated": null, @@ -11195,7 +11227,7 @@ "name": "tap", "qualified_name": "TableclothResult.tap", "type": { - "rendered": "('ok, 'a) TableclothResult.t -> f:('ok -> unit) -> unit" + "rendered": "let tap: (t<'ok, _>, ~f: 'ok => unit) => unit" }, "info": { "deprecated": null, @@ -11303,7 +11335,7 @@ "name": "toOption", "qualified_name": "TableclothResult.toOption", "type": { - "rendered": "('ok, 'a) TableclothResult.t -> 'ok option" + "rendered": "let toOption: t<'ok, _> => option<'ok>" }, "info": { "deprecated": null, @@ -11486,7 +11518,7 @@ "name": "equal", "qualified_name": "TableclothResult.equal", "type": { - "rendered": "('ok -> 'ok -> bool) ->\n ('error -> 'error -> bool) ->\n ('ok, 'error) TableclothResult.t -> ('ok, 'error) TableclothResult.t -> bool" + "rendered": "let equal: (('ok, 'ok) => bool, ('error, 'error) => bool, t<'ok, 'error>, t<'ok, 'error>) => bool" }, "info": { "deprecated": null, @@ -11604,7 +11636,7 @@ "name": "compare", "qualified_name": "TableclothResult.compare", "type": { - "rendered": "('ok -> 'ok -> int) ->\n ('error -> 'error -> int) ->\n ('ok, 'error) TableclothResult.t -> ('ok, 'error) TableclothResult.t -> int" + "rendered": "let compare: (('ok, 'ok) => int, ('error, 'error) => int, t<'ok, 'error>, t<'ok, 'error>) => int" }, "info": { "deprecated": null, @@ -11819,7 +11851,7 @@ "name": "(|?)", "qualified_name": "TableclothResult.(|?)", "type": { - "rendered": "('a, 'error) TableclothResult.t -> 'a -> 'a" + "rendered": "" }, "info": { "deprecated": null, @@ -11948,7 +11980,7 @@ "name": "(>>=)", "qualified_name": "TableclothResult.(>>=)", "type": { - "rendered": "('ok, 'error) TableclothResult.t ->\n ('ok -> ('b, 'error) TableclothResult.t) -> ('b, 'error) TableclothResult.t" + "rendered": "" }, "info": { "deprecated": null, @@ -12091,7 +12123,7 @@ "name": "(>>|)", "qualified_name": "TableclothResult.(>>|)", "type": { - "rendered": "('a, 'error) TableclothResult.t ->\n ('a -> 'b) -> ('b, 'error) TableclothResult.t" + "rendered": "" }, "info": { "deprecated": null, @@ -12517,7 +12549,7 @@ "name": "empty", "qualified_name": "TableclothList.empty", "type": { - "rendered": "'a TableclothList.t" + "rendered": "let empty: t<'a>" }, "info": { "deprecated": null, @@ -12602,7 +12634,7 @@ "name": "singleton", "qualified_name": "TableclothList.singleton", "type": { - "rendered": "'a -> 'a TableclothList.t" + "rendered": "let singleton: 'a => t<'a>" }, "info": { "deprecated": null, @@ -12687,7 +12719,7 @@ "name": "repeat", "qualified_name": "TableclothList.repeat", "type": { - "rendered": "'a -> times:int -> 'a TableclothList.t" + "rendered": "let repeat: ('a, ~times: int) => t<'a>" }, "info": { "deprecated": null, @@ -12799,7 +12831,7 @@ "name": "range", "qualified_name": "TableclothList.range", "type": { - "rendered": "?from:int -> int -> int TableclothList.t" + "rendered": "let range: (~from: int=?, int) => t" }, "info": { "deprecated": null, @@ -12915,7 +12947,7 @@ "name": "initialize", "qualified_name": "TableclothList.initialize", "type": { - "rendered": "int -> f:(int -> 'a) -> 'a TableclothList.t" + "rendered": "let initialize: (int, ~f: int => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -13040,7 +13072,7 @@ "name": "fromArray", "qualified_name": "TableclothList.fromArray", "type": { - "rendered": "'a array -> 'a TableclothList.t" + "rendered": "let fromArray: array<'a> => t<'a>" }, "info": { "deprecated": null, @@ -13152,7 +13184,7 @@ "name": "head", "qualified_name": "TableclothList.head", "type": { - "rendered": "'a TableclothList.t -> 'a option" + "rendered": "let head: t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -13269,7 +13301,7 @@ "name": "tail", "qualified_name": "TableclothList.tail", "type": { - "rendered": "'a TableclothList.t -> 'a TableclothList.t option" + "rendered": "let tail: t<'a> => option>" }, "info": { "deprecated": null, @@ -13397,7 +13429,7 @@ "name": "cons", "qualified_name": "TableclothList.cons", "type": { - "rendered": "'a TableclothList.t -> 'a -> 'a TableclothList.t" + "rendered": "let cons: (t<'a>, 'a) => t<'a>" }, "info": { "deprecated": null, @@ -13498,7 +13530,7 @@ "name": "take", "qualified_name": "TableclothList.take", "type": { - "rendered": "'a TableclothList.t -> count:int -> 'a TableclothList.t" + "rendered": "let take: (t<'a>, ~count: int) => t<'a>" }, "info": { "deprecated": null, @@ -13637,7 +13669,7 @@ "name": "takeWhile", "qualified_name": "TableclothList.takeWhile", "type": { - "rendered": "'a TableclothList.t -> f:('a -> bool) -> 'a TableclothList.t" + "rendered": "let takeWhile: (t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -13723,7 +13755,7 @@ "name": "drop", "qualified_name": "TableclothList.drop", "type": { - "rendered": "'a TableclothList.t -> count:int -> 'a TableclothList.t" + "rendered": "let drop: (t<'a>, ~count: int) => t<'a>" }, "info": { "deprecated": null, @@ -13851,7 +13883,7 @@ "name": "dropWhile", "qualified_name": "TableclothList.dropWhile", "type": { - "rendered": "'a TableclothList.t -> f:('a -> bool) -> 'a TableclothList.t" + "rendered": "let dropWhile: (t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -13959,7 +13991,7 @@ "name": "initial", "qualified_name": "TableclothList.initial", "type": { - "rendered": "'a TableclothList.t -> 'a TableclothList.t option" + "rendered": "let initialize: (int, ~f: int => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -14091,7 +14123,7 @@ "name": "last", "qualified_name": "TableclothList.last", "type": { - "rendered": "'a TableclothList.t -> 'a option" + "rendered": "let last: t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -14224,7 +14256,7 @@ "name": "getAt", "qualified_name": "TableclothList.getAt", "type": { - "rendered": "'a TableclothList.t -> index:int -> 'a option" + "rendered": "let getAt: (t<'a>, ~index: int) => option<'a>" }, "info": { "deprecated": null, @@ -14352,7 +14384,7 @@ "name": "insertAt", "qualified_name": "TableclothList.insertAt", "type": { - "rendered": "'a TableclothList.t -> index:int -> value:'a -> 'a TableclothList.t" + "rendered": "let insertAt: (t<'a>, ~index: int, ~value: 'a) => t<'a>" }, "info": { "deprecated": null, @@ -14547,7 +14579,7 @@ "name": "updateAt", "qualified_name": "TableclothList.updateAt", "type": { - "rendered": "'a TableclothList.t -> index:int -> f:('a -> 'a) -> 'a TableclothList.t" + "rendered": "let updateAt: (t<'a>, ~index: int, ~f: 'a => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -14664,7 +14696,7 @@ "name": "removeAt", "qualified_name": "TableclothList.removeAt", "type": { - "rendered": "'a TableclothList.t -> index:int -> 'a TableclothList.t" + "rendered": "let removeAt: (t<'a>, ~index: int) => t<'a>" }, "info": { "deprecated": null, @@ -14773,7 +14805,7 @@ "name": "reverse", "qualified_name": "TableclothList.reverse", "type": { - "rendered": "'a TableclothList.t -> 'a TableclothList.t" + "rendered": "let reverse: t<'a> => t<'a>" }, "info": { "deprecated": null, @@ -14847,7 +14879,7 @@ "name": "sort", "qualified_name": "TableclothList.sort", "type": { - "rendered": "'a TableclothList.t -> compare:('a -> 'a -> int) -> 'a TableclothList.t" + "rendered": "let sort: (t<'a>, ~compare: ('a, 'a) => int) => t<'a>" }, "info": { "deprecated": null, @@ -14961,7 +14993,7 @@ "name": "sortBy", "qualified_name": "TableclothList.sortBy", "type": { - "rendered": "f:('a -> 'b) -> 'a TableclothList.t -> 'a TableclothList.t" + "rendered": "let sortBy: (~f: 'a => 'b, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -15036,7 +15068,7 @@ "name": "isEmpty", "qualified_name": "TableclothList.isEmpty", "type": { - "rendered": "'a TableclothList.t -> bool" + "rendered": "let isEmpty: t<_> => bool" }, "info": { "deprecated": null, @@ -15132,7 +15164,7 @@ "name": "length", "qualified_name": "TableclothList.length", "type": { - "rendered": "'a TableclothList.t -> int" + "rendered": "let length: t<'a> => int" }, "info": { "deprecated": null, @@ -15356,7 +15388,7 @@ "name": "any", "qualified_name": "TableclothList.any", "type": { - "rendered": "'a TableclothList.t -> f:('a -> bool) -> bool" + "rendered": "let any: (t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -15484,7 +15516,7 @@ "name": "all", "qualified_name": "TableclothList.all", "type": { - "rendered": "'a TableclothList.t -> f:('a -> bool) -> bool" + "rendered": "let all: (t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -15612,7 +15644,7 @@ "name": "count", "qualified_name": "TableclothList.count", "type": { - "rendered": "'a TableclothList.t -> f:('a -> bool) -> int" + "rendered": "let count: (t<'a>, ~f: 'a => bool) => int" }, "info": { "deprecated": null, @@ -15702,7 +15734,7 @@ "name": "uniqueBy", "qualified_name": "TableclothList.uniqueBy", "type": { - "rendered": "f:('a -> string) -> 'a list -> 'a list" + "rendered": "let uniqueBy: (~f: 'a => string, list<'a>) => list<'a>" }, "info": { "deprecated": null, @@ -15783,7 +15815,7 @@ "name": "find", "qualified_name": "TableclothList.find", "type": { - "rendered": "'a TableclothList.t -> f:('a -> bool) -> 'a option" + "rendered": "let find: (t<'a>, ~f: 'a => bool) => option<'a>" }, "info": { "deprecated": null, @@ -15923,7 +15955,7 @@ "name": "findIndex", "qualified_name": "TableclothList.findIndex", "type": { - "rendered": "'a TableclothList.t -> f:(int -> 'a -> bool) -> (int * 'a) option" + "rendered": "let findIndex: (t<'a>, ~f: (int, 'a) => bool) => option<(int, 'a)>" }, "info": { "deprecated": null, @@ -16045,7 +16077,7 @@ "name": "includes", "qualified_name": "TableclothList.includes", "type": { - "rendered": "'a TableclothList.t -> 'a -> equal:('a -> 'a -> bool) -> bool" + "rendered": "let includes: (t<'a>, 'a, ~equal: ('a, 'a) => bool) => bool" }, "info": { "deprecated": null, @@ -16177,7 +16209,7 @@ "name": "minimumBy", "qualified_name": "TableclothList.minimumBy", "type": { - "rendered": "f:('a -> 'comparable) -> 'a list -> 'a option" + "rendered": "let minimumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16282,7 +16314,7 @@ "name": "maximumBy", "qualified_name": "TableclothList.maximumBy", "type": { - "rendered": "f:('a -> 'comparable) -> 'a list -> 'a option" + "rendered": "let maximumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16387,7 +16419,7 @@ "name": "minimum", "qualified_name": "TableclothList.minimum", "type": { - "rendered": "'a TableclothList.t -> compare:('a -> 'a -> int) -> 'a option" + "rendered": "let minimumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16485,7 +16517,7 @@ "name": "maximum", "qualified_name": "TableclothList.maximum", "type": { - "rendered": "'a TableclothList.t -> compare:('a -> 'a -> int) -> 'a option" + "rendered": "let maximumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16583,7 +16615,7 @@ "name": "extent", "qualified_name": "TableclothList.extent", "type": { - "rendered": "'a TableclothList.t -> compare:('a -> 'a -> int) -> ('a * 'a) option" + "rendered": "let extent: (t<'a>, ~compare: ('a, 'a) => int) => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -16709,7 +16741,7 @@ "name": "sum", "qualified_name": "TableclothList.sum", "type": { - "rendered": "'a TableclothList.t ->\n (module TableclothContainer.Sum with type t = 'a) -> 'a" + "rendered": "let sum: (t<'a>, module(TableclothContainer.Sum with type t = 'a)) => 'a" }, "info": { "deprecated": null, @@ -16839,7 +16871,7 @@ "name": "map", "qualified_name": "TableclothList.map", "type": { - "rendered": "'a TableclothList.t -> f:('a -> 'b) -> 'b TableclothList.t" + "rendered": "let map: (t<'a>, ~f: 'a => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -16921,7 +16953,7 @@ "name": "mapWithIndex", "qualified_name": "TableclothList.mapWithIndex", "type": { - "rendered": "'a TableclothList.t -> f:(int -> 'a -> 'b) -> 'b TableclothList.t" + "rendered": "let mapWithIndex: (t<'a>, ~f: (int, 'a) => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -17003,7 +17035,7 @@ "name": "filter", "qualified_name": "TableclothList.filter", "type": { - "rendered": "'a TableclothList.t -> f:('a -> bool) -> 'a TableclothList.t" + "rendered": "let filter: (t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -17093,7 +17125,7 @@ "name": "filterWithIndex", "qualified_name": "TableclothList.filterWithIndex", "type": { - "rendered": "'a TableclothList.t -> f:(int -> 'a -> bool) -> 'a TableclothList.t" + "rendered": "let filterWithIndex: (t<'a>, ~f: (int, 'a) => bool) => t<'a>" }, "info": { "deprecated": null, @@ -17159,7 +17191,7 @@ "name": "filterMap", "qualified_name": "TableclothList.filterMap", "type": { - "rendered": "'a TableclothList.t -> f:('a -> 'b option) -> 'b TableclothList.t" + "rendered": "let filterMap: (t<'a>, ~f: 'a => option<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -17440,7 +17472,7 @@ "name": "flatMap", "qualified_name": "TableclothList.flatMap", "type": { - "rendered": "'a TableclothList.t -> f:('a -> 'b TableclothList.t) -> 'b TableclothList.t" + "rendered": "let flatMap: (t<'a>, ~f: 'a => t<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -17553,7 +17585,7 @@ "name": "fold", "qualified_name": "TableclothList.fold", "type": { - "rendered": "'a TableclothList.t -> initial:'b -> f:('b -> 'a -> 'b) -> 'b" + "rendered": "let fold: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -17779,7 +17811,7 @@ "name": "foldRight", "qualified_name": "TableclothList.foldRight", "type": { - "rendered": "'a TableclothList.t -> initial:'b -> f:('b -> 'a -> 'b) -> 'b" + "rendered": "let foldRight: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -17855,7 +17887,7 @@ "name": "append", "qualified_name": "TableclothList.append", "type": { - "rendered": "'a TableclothList.t -> 'a TableclothList.t -> 'a TableclothList.t" + "rendered": "let append: (t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -17929,7 +17961,7 @@ "name": "flatten", "qualified_name": "TableclothList.flatten", "type": { - "rendered": "'a TableclothList.t TableclothList.t -> 'a TableclothList.t" + "rendered": "let flatten: t> => t<'a>" }, "info": { "deprecated": null, @@ -18003,7 +18035,7 @@ "name": "zip", "qualified_name": "TableclothList.zip", "type": { - "rendered": "'a TableclothList.t -> 'b TableclothList.t -> ('a * 'b) TableclothList.t" + "rendered": "let zip: (t<'a>, t<'b>) => t<('a, 'b)>" }, "info": { "deprecated": null, @@ -18113,7 +18145,7 @@ "name": "map2", "qualified_name": "TableclothList.map2", "type": { - "rendered": "'a TableclothList.t ->\n 'b TableclothList.t -> f:('a -> 'b -> 'c) -> 'c TableclothList.t" + "rendered": "let map2: (t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" }, "info": { "deprecated": null, @@ -18214,7 +18246,7 @@ "name": "map3", "qualified_name": "TableclothList.map3", "type": { - "rendered": "'a TableclothList.t ->\n 'b TableclothList.t ->\n 'c TableclothList.t -> f:('a -> 'b -> 'c -> 'd) -> 'd TableclothList.t" + "rendered": "let map3: (t<'a>, t<'b>, t<'c>, ~f: ('a, 'b, 'c) => 'd) => t<'d>" }, "info": { "deprecated": null, @@ -18322,7 +18354,7 @@ "name": "partition", "qualified_name": "TableclothList.partition", "type": { - "rendered": "'a TableclothList.t ->\n f:('a -> bool) -> 'a TableclothList.t * 'a TableclothList.t" + "rendered": "let partition: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -18444,7 +18476,7 @@ "name": "splitAt", "qualified_name": "TableclothList.splitAt", "type": { - "rendered": "'a TableclothList.t -> index:int -> 'a TableclothList.t * 'a TableclothList.t" + "rendered": "let splitAt: (t<'a>, ~index: int) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -18624,7 +18656,7 @@ "name": "splitWhen", "qualified_name": "TableclothList.splitWhen", "type": { - "rendered": "'a TableclothList.t ->\n f:('a -> bool) -> 'a TableclothList.t * 'a TableclothList.t" + "rendered": "let splitWhen: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -18769,7 +18801,7 @@ "name": "unzip", "qualified_name": "TableclothList.unzip", "type": { - "rendered": "('a * 'b) TableclothList.t -> 'a TableclothList.t * 'b TableclothList.t" + "rendered": "let unzip: t<('a, 'b)> => (t<'a>, t<'b>)" }, "info": { "deprecated": null, @@ -18901,7 +18933,7 @@ "name": "forEach", "qualified_name": "TableclothList.forEach", "type": { - "rendered": "'a TableclothList.t -> f:('a -> unit) -> unit" + "rendered": "let forEach: (t<'a>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -19031,7 +19063,7 @@ "name": "forEachWithIndex", "qualified_name": "TableclothList.forEachWithIndex", "type": { - "rendered": "'a TableclothList.t -> f:(int -> 'a -> unit) -> unit" + "rendered": "let forEachWithIndex: (t<'a>, ~f: (int, 'a) => unit) => unit" }, "info": { "deprecated": null, @@ -19133,7 +19165,7 @@ "name": "intersperse", "qualified_name": "TableclothList.intersperse", "type": { - "rendered": "'a TableclothList.t -> sep:'a -> 'a TableclothList.t" + "rendered": "let intersperse: (t<'a>, ~sep: 'a) => t<'a>" }, "info": { "deprecated": null, @@ -19226,7 +19258,7 @@ "name": "chunksOf", "qualified_name": "TableclothList.chunksOf", "type": { - "rendered": "'a TableclothList.t -> size:int -> 'a TableclothList.t TableclothList.t" + "rendered": "let chunksOf: (t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -19308,7 +19340,7 @@ "name": "sliding", "qualified_name": "TableclothList.sliding", "type": { - "rendered": "?step:int ->\n 'a TableclothList.t -> size:int -> 'a TableclothList.t TableclothList.t" + "rendered": "let sliding: (~step: int=?, t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -19504,7 +19536,7 @@ "name": "groupWhile", "qualified_name": "TableclothList.groupWhile", "type": { - "rendered": "'a TableclothList.t ->\n f:('a -> 'a -> bool) -> 'a TableclothList.t TableclothList.t" + "rendered": "let groupWhile: (t<'a>, ~f: ('a, 'a) => bool) => t>" }, "info": { "deprecated": null, @@ -19661,7 +19693,7 @@ "name": "join", "qualified_name": "TableclothList.join", "type": { - "rendered": "string TableclothList.t -> sep:string -> string" + "rendered": "let join: (t, ~sep: string) => string" }, "info": { "deprecated": null, @@ -19763,7 +19795,7 @@ "name": "groupBy", "qualified_name": "TableclothList.groupBy", "type": { - "rendered": "'value TableclothList.t ->\n ('key, 'id) TableclothComparator.s ->\n f:('value -> 'key) -> ('key, 'value list, 'id) TableclothMap.t" + "rendered": "let groupBy: (\n t<'value>,\n TableclothComparator.s<'key, 'id>,\n ~f: 'value => 'key,\n) => TableclothMap.t<'key, list<'value>, 'id>" }, "info": { "deprecated": null, @@ -19885,7 +19917,7 @@ "name": "toArray", "qualified_name": "TableclothList.toArray", "type": { - "rendered": "'a TableclothList.t -> 'a array" + "rendered": "let toArray: t<'a> => array<'a>" }, "info": { "deprecated": null, @@ -19961,7 +19993,7 @@ "name": "equal", "qualified_name": "TableclothList.equal", "type": { - "rendered": "('a -> 'a -> bool) -> 'a TableclothList.t -> 'a TableclothList.t -> bool" + "rendered": "let equal: (('a, 'a) => bool, t<'a>, t<'a>) => bool" }, "info": { "deprecated": null, @@ -19999,7 +20031,7 @@ "name": "compare", "qualified_name": "TableclothList.compare", "type": { - "rendered": "('a -> 'a -> int) -> 'a TableclothList.t -> 'a TableclothList.t -> int" + "rendered": "let compare: (('a, 'a) => int, t<'a>, t<'a>) => int" }, "info": { "deprecated": null, @@ -20297,7 +20329,7 @@ "name": "singleton", "qualified_name": "TableclothArray.singleton", "type": { - "rendered": "'a -> 'a TableclothArray.t" + "rendered": "let singleton: 'a => t<'a>" }, "info": { "deprecated": null, @@ -20382,7 +20414,7 @@ "name": "repeat", "qualified_name": "TableclothArray.repeat", "type": { - "rendered": "'a -> length:int -> 'a TableclothArray.t" + "rendered": "let repeat: ('a, ~length: int) => t<'a>" }, "info": { "deprecated": null, @@ -20494,7 +20526,7 @@ "name": "range", "qualified_name": "TableclothArray.range", "type": { - "rendered": "?from:int -> int -> int TableclothArray.t" + "rendered": "let range: (~from: int=?, int) => t" }, "info": { "deprecated": null, @@ -20610,7 +20642,7 @@ "name": "initialize", "qualified_name": "TableclothArray.initialize", "type": { - "rendered": "int -> f:(int -> 'a) -> 'a TableclothArray.t" + "rendered": "let initialize: (int, ~f: int => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -20727,7 +20759,7 @@ "name": "fromList", "qualified_name": "TableclothArray.fromList", "type": { - "rendered": "'a list -> 'a TableclothArray.t" + "rendered": "let fromList: list<'a> => t<'a>" }, "info": { "deprecated": null, @@ -20821,7 +20853,7 @@ "name": "clone", "qualified_name": "TableclothArray.clone", "type": { - "rendered": "'a TableclothArray.t -> 'a TableclothArray.t" + "rendered": "let clone: t<'a> => t<'a>" }, "info": { "deprecated": null, @@ -20924,7 +20956,7 @@ "name": "get", "qualified_name": "TableclothArray.get", "type": { - "rendered": "'a TableclothArray.t -> int -> 'a" + "rendered": "let get: (t<'a>, int) => 'a" }, "info": { "deprecated": null, @@ -21137,7 +21169,7 @@ "name": "getAt", "qualified_name": "TableclothArray.getAt", "type": { - "rendered": "'a TableclothArray.t -> index:int -> 'a option" + "rendered": "let getAt: (t<'a>, ~index: int) => option<'a>" }, "info": { "deprecated": null, @@ -21298,7 +21330,7 @@ "name": "(.?())", "qualified_name": "TableclothArray.(.?())", "type": { - "rendered": "'element array -> int -> 'element option" + "rendered": "" }, "info": { "deprecated": null, @@ -21436,7 +21468,7 @@ "name": "set", "qualified_name": "TableclothArray.set", "type": { - "rendered": "'a TableclothArray.t -> int -> 'a -> unit" + "rendered": "let set: (t<'a>, int, 'a) => unit" }, "info": { "deprecated": null, @@ -21638,7 +21670,7 @@ "name": "setAt", "qualified_name": "TableclothArray.setAt", "type": { - "rendered": "'a TableclothArray.t -> index:int -> value:'a -> unit" + "rendered": "let setAt: (t<'a>, ~index: int, ~value: 'a) => unit" }, "info": { "deprecated": null, @@ -21696,7 +21728,7 @@ "name": "first", "qualified_name": "TableclothArray.first", "type": { - "rendered": "'a TableclothArray.t -> 'a option" + "rendered": "let first: t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -21808,7 +21840,7 @@ "name": "last", "qualified_name": "TableclothArray.last", "type": { - "rendered": "'a TableclothArray.t -> 'a option" + "rendered": "let last: t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -21920,7 +21952,7 @@ "name": "slice", "qualified_name": "TableclothArray.slice", "type": { - "rendered": "?to_:int -> 'a TableclothArray.t -> from:int -> 'a TableclothArray.t" + "rendered": "let slice: (~to_: int=?, t<'a>, ~from: int) => t<'a>" }, "info": { "deprecated": null, @@ -22113,7 +22145,7 @@ "name": "swap", "qualified_name": "TableclothArray.swap", "type": { - "rendered": "'a TableclothArray.t -> int -> int -> unit" + "rendered": "let swap: (t<'a>, int, int) => unit" }, "info": { "deprecated": null, @@ -22224,7 +22256,7 @@ "name": "reverse", "qualified_name": "TableclothArray.reverse", "type": { - "rendered": "'a TableclothArray.t -> unit" + "rendered": "let reverse: t<'a> => unit" }, "info": { "deprecated": null, @@ -22311,7 +22343,7 @@ "name": "sort", "qualified_name": "TableclothArray.sort", "type": { - "rendered": "'a TableclothArray.t -> compare:('a -> 'a -> int) -> unit" + "rendered": "let sort: (t<'a>, ~compare: ('a, 'a) => int) => unit" }, "info": { "deprecated": null, @@ -22451,7 +22483,7 @@ "name": "isEmpty", "qualified_name": "TableclothArray.isEmpty", "type": { - "rendered": "'a TableclothArray.t -> bool" + "rendered": "let isEmpty: t<'a> => bool" }, "info": { "deprecated": null, @@ -22536,7 +22568,7 @@ "name": "length", "qualified_name": "TableclothArray.length", "type": { - "rendered": "'a TableclothArray.t -> int" + "rendered": "let length: t<'a> => int" }, "info": { "deprecated": null, @@ -22621,7 +22653,7 @@ "name": "any", "qualified_name": "TableclothArray.any", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> bool) -> bool" + "rendered": "let any: (t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -22753,7 +22785,7 @@ "name": "all", "qualified_name": "TableclothArray.all", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> bool) -> bool" + "rendered": "let all: (t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -22885,7 +22917,7 @@ "name": "count", "qualified_name": "TableclothArray.count", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> bool) -> int" + "rendered": "let count: (t<'a>, ~f: 'a => bool) => int" }, "info": { "deprecated": null, @@ -22975,7 +23007,7 @@ "name": "find", "qualified_name": "TableclothArray.find", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> bool) -> 'a option" + "rendered": "let find: (t<'a>, ~f: 'a => bool) => option<'a>" }, "info": { "deprecated": null, @@ -23143,7 +23175,7 @@ "name": "findIndex", "qualified_name": "TableclothArray.findIndex", "type": { - "rendered": "'a TableclothArray.t -> f:(int -> 'a -> bool) -> (int * 'a) option" + "rendered": "let findIndex: (t<'a>, ~f: (int, 'a) => bool) => option<(int, 'a)>" }, "info": { "deprecated": null, @@ -23245,7 +23277,7 @@ "name": "includes", "qualified_name": "TableclothArray.includes", "type": { - "rendered": "'a TableclothArray.t -> 'a -> equal:('a -> 'a -> bool) -> bool" + "rendered": "let includes: (t<'a>, 'a, ~equal: ('a, 'a) => bool) => bool" }, "info": { "deprecated": null, @@ -23327,7 +23359,7 @@ "name": "minimum", "qualified_name": "TableclothArray.minimum", "type": { - "rendered": "'a TableclothArray.t -> compare:('a -> 'a -> int) -> 'a option" + "rendered": "let minimum: (t<'a>, ~compare: ('a, 'a) => int) => option<'a>" }, "info": { "deprecated": null, @@ -23436,7 +23468,7 @@ "name": "maximum", "qualified_name": "TableclothArray.maximum", "type": { - "rendered": "'a TableclothArray.t -> compare:('a -> 'a -> int) -> 'a option" + "rendered": "let maximum: (t<'a>, ~compare: ('a, 'a) => int) => option<'a>" }, "info": { "deprecated": null, @@ -23545,7 +23577,7 @@ "name": "extent", "qualified_name": "TableclothArray.extent", "type": { - "rendered": "'a TableclothArray.t -> compare:('a -> 'a -> int) -> ('a * 'a) option" + "rendered": "let extent: (t<'a>, ~compare: ('a, 'a) => int) => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -23717,7 +23749,7 @@ "name": "sum", "qualified_name": "TableclothArray.sum", "type": { - "rendered": "'a TableclothArray.t ->\n (module TableclothContainer.Sum with type t = 'a) -> 'a" + "rendered": "let sum: (t<'a>, module(TableclothContainer.Sum with type t = 'a)) => 'a" }, "info": { "deprecated": null, @@ -23847,7 +23879,7 @@ "name": "map", "qualified_name": "TableclothArray.map", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> 'b) -> 'b TableclothArray.t" + "rendered": "let map: (t<'a>, ~f: 'a => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -23929,7 +23961,7 @@ "name": "mapWithIndex", "qualified_name": "TableclothArray.mapWithIndex", "type": { - "rendered": "'a TableclothArray.t -> f:(int -> 'a -> 'b) -> 'b TableclothArray.t" + "rendered": "let mapWithIndex: (t<'a>, ~f: (int, 'a) => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -24011,7 +24043,7 @@ "name": "filter", "qualified_name": "TableclothArray.filter", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> bool) -> 'a TableclothArray.t" + "rendered": "let filter: (t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -24101,7 +24133,7 @@ "name": "filterMap", "qualified_name": "TableclothArray.filterMap", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> 'b option) -> 'b TableclothArray.t" + "rendered": "let filterMap: (t<'a>, ~f: 'a => option<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -24398,7 +24430,7 @@ "name": "flatMap", "qualified_name": "TableclothArray.flatMap", "type": { - "rendered": "'a TableclothArray.t ->\n f:('a -> 'b TableclothArray.t) -> 'b TableclothArray.t" + "rendered": "let flatMap: (t<'a>, ~f: 'a => t<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -24516,7 +24548,7 @@ "name": "fold", "qualified_name": "TableclothArray.fold", "type": { - "rendered": "'a TableclothArray.t -> initial:'b -> f:('b -> 'a -> 'b) -> 'b" + "rendered": "let fold: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -24838,7 +24870,7 @@ "name": "foldRight", "qualified_name": "TableclothArray.foldRight", "type": { - "rendered": "'a TableclothArray.t -> initial:'b -> f:('b -> 'a -> 'b) -> 'b" + "rendered": "let foldRight: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -24943,7 +24975,7 @@ "name": "append", "qualified_name": "TableclothArray.append", "type": { - "rendered": "'a TableclothArray.t -> 'a TableclothArray.t -> 'a TableclothArray.t" + "rendered": "let append: (t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -25017,7 +25049,7 @@ "name": "flatten", "qualified_name": "TableclothArray.flatten", "type": { - "rendered": "'a TableclothArray.t TableclothArray.t -> 'a TableclothArray.t" + "rendered": "let flatten: t> => t<'a>" }, "info": { "deprecated": null, @@ -25091,7 +25123,7 @@ "name": "zip", "qualified_name": "TableclothArray.zip", "type": { - "rendered": "'a TableclothArray.t -> 'b TableclothArray.t -> ('a * 'b) TableclothArray.t" + "rendered": "let zip: (t<'a>, t<'b>) => t<('a, 'b)>" }, "info": { "deprecated": null, @@ -25201,7 +25233,7 @@ "name": "map2", "qualified_name": "TableclothArray.map2", "type": { - "rendered": "'a TableclothArray.t ->\n 'b TableclothArray.t -> f:('a -> 'b -> 'c) -> 'c TableclothArray.t" + "rendered": "let map2: (t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" }, "info": { "deprecated": null, @@ -25302,7 +25334,7 @@ "name": "map3", "qualified_name": "TableclothArray.map3", "type": { - "rendered": "'a TableclothArray.t ->\n 'b TableclothArray.t ->\n 'c TableclothArray.t -> f:('a -> 'b -> 'c -> 'd) -> 'd TableclothArray.t" + "rendered": "let map3: (t<'a>, t<'b>, t<'c>, ~f: ('a, 'b, 'c) => 'd) => t<'d>" }, "info": { "deprecated": null, @@ -25410,7 +25442,7 @@ "name": "partition", "qualified_name": "TableclothArray.partition", "type": { - "rendered": "'a TableclothArray.t ->\n f:('a -> bool) -> 'a TableclothArray.t * 'a TableclothArray.t" + "rendered": "let partition: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -25532,7 +25564,7 @@ "name": "splitAt", "qualified_name": "TableclothArray.splitAt", "type": { - "rendered": "'a TableclothArray.t ->\n index:int -> 'a TableclothArray.t * 'a TableclothArray.t" + "rendered": "let splitAt: (t<'a>, ~index: int) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -25725,7 +25757,7 @@ "name": "splitWhen", "qualified_name": "TableclothArray.splitWhen", "type": { - "rendered": "'a TableclothArray.t ->\n f:('a -> bool) -> 'a TableclothArray.t * 'a TableclothArray.t" + "rendered": "let splitWhen: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -25889,7 +25921,7 @@ "name": "unzip", "qualified_name": "TableclothArray.unzip", "type": { - "rendered": "('a * 'b) TableclothArray.t -> 'a TableclothArray.t * 'b TableclothArray.t" + "rendered": "let unzip: t<('a, 'b)> => (t<'a>, t<'b>)" }, "info": { "deprecated": null, @@ -26021,7 +26053,7 @@ "name": "forEach", "qualified_name": "TableclothArray.forEach", "type": { - "rendered": "'a TableclothArray.t -> f:('a -> unit) -> unit" + "rendered": "let forEach: (t<'a>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -26103,7 +26135,7 @@ "name": "forEachWithIndex", "qualified_name": "TableclothArray.forEachWithIndex", "type": { - "rendered": "'a TableclothArray.t -> f:(int -> 'a -> unit) -> unit" + "rendered": "let forEachWithIndex: (t<'a>, ~f: (int, 'a) => unit) => unit" }, "info": { "deprecated": null, @@ -26185,7 +26217,7 @@ "name": "values", "qualified_name": "TableclothArray.values", "type": { - "rendered": "'a option TableclothArray.t -> 'a TableclothArray.t" + "rendered": "let values: t> => t<'a>" }, "info": { "deprecated": null, @@ -26278,7 +26310,7 @@ "name": "intersperse", "qualified_name": "TableclothArray.intersperse", "type": { - "rendered": "'a TableclothArray.t -> sep:'a -> 'a TableclothArray.t" + "rendered": "let intersperse: (t<'a>, ~sep: 'a) => t<'a>" }, "info": { "deprecated": null, @@ -26371,7 +26403,7 @@ "name": "chunksOf", "qualified_name": "TableclothArray.chunksOf", "type": { - "rendered": "'a TableclothArray.t -> size:int -> 'a TableclothArray.t TableclothArray.t" + "rendered": "let chunksOf: (t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -26453,7 +26485,7 @@ "name": "sliding", "qualified_name": "TableclothArray.sliding", "type": { - "rendered": "?step:int ->\n 'a TableclothArray.t -> size:int -> 'a TableclothArray.t TableclothArray.t" + "rendered": "let sliding: (~step: int=?, t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -26653,7 +26685,7 @@ "name": "join", "qualified_name": "TableclothArray.join", "type": { - "rendered": "string TableclothArray.t -> sep:string -> string" + "rendered": "let join: (t, ~sep: string) => string" }, "info": { "deprecated": null, @@ -26755,7 +26787,7 @@ "name": "groupBy", "qualified_name": "TableclothArray.groupBy", "type": { - "rendered": "'value TableclothArray.t ->\n ('key, 'id) TableclothComparator.s ->\n f:('value -> 'key) -> ('key, 'value list, 'id) TableclothMap.t" + "rendered": "let groupBy: (\n t<'value>,\n TableclothComparator.s<'key, 'id>,\n ~f: 'value => 'key,\n) => TableclothMap.t<'key, list<'value>, 'id>" }, "info": { "deprecated": null, @@ -26877,7 +26909,7 @@ "name": "toList", "qualified_name": "TableclothArray.toList", "type": { - "rendered": "'a TableclothArray.t -> 'a list" + "rendered": "let toList: t<'a> => list<'a>" }, "info": { "deprecated": null, @@ -26982,7 +27014,7 @@ "name": "toIndexedList", "qualified_name": "TableclothArray.toIndexedList", "type": { - "rendered": "'a TableclothArray.t -> (int * 'a) list" + "rendered": "let toIndexedList: t<'a> => list<(int, 'a)>" }, "info": { "deprecated": null, @@ -27096,7 +27128,7 @@ "name": "equal", "qualified_name": "TableclothArray.equal", "type": { - "rendered": "('a -> 'a -> bool) -> 'a TableclothArray.t -> 'a TableclothArray.t -> bool" + "rendered": "let equal: (('a, 'a) => bool, t<'a>, t<'a>) => bool" }, "info": { "deprecated": null, @@ -27134,7 +27166,7 @@ "name": "compare", "qualified_name": "TableclothArray.compare", "type": { - "rendered": "('a -> 'a -> int) -> 'a TableclothArray.t -> 'a TableclothArray.t -> int" + "rendered": "let compare: (('a, 'a) => int, t<'a>, t<'a>) => int" }, "info": { "deprecated": null, @@ -27855,7 +27887,7 @@ "name": "empty", "qualified_name": "TableclothMap.empty", "type": { - "rendered": "('key, 'identity) TableclothComparator.s ->\n ('key, 'value, 'identity) TableclothMap.t" + "rendered": "let empty: TableclothComparator.s<'key, 'identity> => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -27977,7 +28009,7 @@ "name": "singleton", "qualified_name": "TableclothMap.singleton", "type": { - "rendered": "('key, 'identity) TableclothComparator.s ->\n key:'key -> value:'value -> ('key, 'value, 'identity) TableclothMap.t" + "rendered": "let singleton: (\n TableclothComparator.s<'key, 'identity>,\n ~key: 'key,\n ~value: 'value,\n) => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -28051,7 +28083,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.fromArray", "type": { - "rendered": "('key, 'identity) TableclothComparator.s ->\n ('key * 'value) array -> ('key, 'value, 'identity) TableclothMap.t" + "rendered": "let fromArray: (\n TableclothComparator.s<'key, 'identity>,\n array<('key, 'value)>,\n) => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -28109,7 +28141,7 @@ "name": "fromList", "qualified_name": "TableclothMap.fromList", "type": { - "rendered": "('key, 'identity) TableclothComparator.s ->\n ('key * 'value) list -> ('key, 'value, 'identity) TableclothMap.t" + "rendered": "let fromList: (\n TableclothComparator.s<'key, 'identity>,\n list<('key, 'value)>,\n) => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -28185,7 +28217,7 @@ "name": "add", "qualified_name": "TableclothMap.add", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n key:'key -> value:'value -> ('key, 'value, 'id) TableclothMap.t" + "rendered": "let add: (t<'key, 'value, 'id>, ~key: 'key, ~value: 'value) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -28286,7 +28318,7 @@ "name": "(.?{}<-)", "qualified_name": "TableclothMap.(.?{}<-)", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n 'key -> 'value -> ('key, 'value, 'id) TableclothMap.t" + "rendered": "" }, "info": { "deprecated": null, @@ -28413,7 +28445,7 @@ "name": "remove", "qualified_name": "TableclothMap.remove", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n 'key -> ('key, 'value, 'id) TableclothMap.t" + "rendered": "let remove: (t<'key, 'value, 'id>, 'key) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -28483,7 +28515,7 @@ "name": "get", "qualified_name": "TableclothMap.get", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t -> 'key -> 'value option" + "rendered": "let get: (t<'key, 'value, 'id>, 'key) => option<'value>" }, "info": { "deprecated": null, @@ -28566,7 +28598,7 @@ "name": "(.?{})", "qualified_name": "TableclothMap.(.?{})", "type": { - "rendered": "('key, 'value, 'a) TableclothMap.t -> 'key -> 'value option" + "rendered": "" }, "info": { "deprecated": null, @@ -28693,7 +28725,7 @@ "name": "update", "qualified_name": "TableclothMap.update", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n key:'key ->\n f:('value option -> 'value option) -> ('key, 'value, 'id) TableclothMap.t" + "rendered": "let update: (\n t<'key, 'value, 'id>,\n ~key: 'key,\n ~f: option<'value> => option<'value>,\n) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -28817,7 +28849,7 @@ "name": "isEmpty", "qualified_name": "TableclothMap.isEmpty", "type": { - "rendered": "('a, 'b, 'c) TableclothMap.t -> bool" + "rendered": "let isEmpty: t<_, _, _> => bool" }, "info": { "deprecated": null, @@ -28855,7 +28887,7 @@ "name": "length", "qualified_name": "TableclothMap.length", "type": { - "rendered": "('a, 'b, 'c) TableclothMap.t -> int" + "rendered": "let length: t<_, _, _> => int" }, "info": { "deprecated": null, @@ -28929,7 +28961,7 @@ "name": "any", "qualified_name": "TableclothMap.any", "type": { - "rendered": "('a, 'value, 'b) TableclothMap.t -> f:('value -> bool) -> bool" + "rendered": "let any: (t<_, 'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -28991,7 +29023,7 @@ "name": "all", "qualified_name": "TableclothMap.all", "type": { - "rendered": "('a, 'value, 'b) TableclothMap.t -> f:('value -> bool) -> bool" + "rendered": "let all: (t<_, 'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -29053,7 +29085,7 @@ "name": "find", "qualified_name": "TableclothMap.find", "type": { - "rendered": "('key, 'value, 'a) TableclothMap.t ->\n f:(key:'key -> value:'value -> bool) -> ('key * 'value) option" + "rendered": "let find: (t<'key, 'value, _>, ~f: (~key: 'key, ~value: 'value) => bool) => option<('key, 'value)>" }, "info": { "deprecated": null, @@ -29212,7 +29244,7 @@ "name": "includes", "qualified_name": "TableclothMap.includes", "type": { - "rendered": "('key, 'a, 'b) TableclothMap.t -> 'key -> bool" + "rendered": "let includes: (t<'key, _, _>, 'key) => bool" }, "info": { "deprecated": null, @@ -29258,7 +29290,7 @@ "name": "minimum", "qualified_name": "TableclothMap.minimum", "type": { - "rendered": "('key, 'a, 'b) TableclothMap.t -> 'key option" + "rendered": "let minimum: t<'key, _, _> => option<'key>" }, "info": { "deprecated": null, @@ -29381,7 +29413,7 @@ "name": "maximum", "qualified_name": "TableclothMap.maximum", "type": { - "rendered": "('key, 'a, 'b) TableclothMap.t -> 'key option" + "rendered": "let maximum: t<'key, _, _> => option<'key>" }, "info": { "deprecated": null, @@ -29484,7 +29516,7 @@ "name": "extent", "qualified_name": "TableclothMap.extent", "type": { - "rendered": "('key, 'a, 'b) TableclothMap.t -> ('key * 'key) option" + "rendered": "let extent: t<'key, _, _> => option<('key, 'key)>" }, "info": { "deprecated": null, @@ -29653,7 +29685,7 @@ "name": "merge", "qualified_name": "TableclothMap.merge", "type": { - "rendered": "('key, 'v1, 'id) TableclothMap.t ->\n ('key, 'v2, 'id) TableclothMap.t ->\n f:('key -> 'v1 option -> 'v2 option -> 'v3 option) ->\n ('key, 'v3, 'id) TableclothMap.t" + "rendered": "let merge: (\n t<'key, 'v1, 'id>,\n t<'key, 'v2, 'id>,\n ~f: ('key, option<'v1>, option<'v2>) => option<'v3>,\n) => t<'key, 'v3, 'id>" }, "info": { "deprecated": null, @@ -29777,7 +29809,7 @@ "name": "map", "qualified_name": "TableclothMap.map", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n f:('value -> 'b) -> ('key, 'b, 'id) TableclothMap.t" + "rendered": "let map: (t<'key, 'value, 'id>, ~f: 'value => 'b) => t<'key, 'b, 'id>" }, "info": { "deprecated": null, @@ -29851,7 +29883,7 @@ "name": "mapWithIndex", "qualified_name": "TableclothMap.mapWithIndex", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n f:('key -> 'value -> 'b) -> ('key, 'b, 'id) TableclothMap.t" + "rendered": "let mapWithIndex: (t<'key, 'value, 'id>, ~f: ('key, 'value) => 'b) => t<'key, 'b, 'id>" }, "info": { "deprecated": null, @@ -29917,7 +29949,7 @@ "name": "filter", "qualified_name": "TableclothMap.filter", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n f:('value -> bool) -> ('key, 'value, 'id) TableclothMap.t" + "rendered": "let filter: (t<'key, 'value, 'id>, ~f: 'value => bool) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -30007,7 +30039,7 @@ "name": "partition", "qualified_name": "TableclothMap.partition", "type": { - "rendered": "('key, 'value, 'id) TableclothMap.t ->\n f:(key:'key -> value:'value -> bool) ->\n ('key, 'value, 'id) TableclothMap.t * ('key, 'value, 'id) TableclothMap.t" + "rendered": "let partition: (\n t<'key, 'value, 'id>,\n ~f: (~key: 'key, ~value: 'value) => bool,\n) => (t<'key, 'value, 'id>, t<'key, 'value, 'id>)" }, "info": { "deprecated": null, @@ -30113,7 +30145,7 @@ "name": "fold", "qualified_name": "TableclothMap.fold", "type": { - "rendered": "('key, 'value, 'b) TableclothMap.t ->\n initial:'a -> f:('a -> key:'key -> value:'value -> 'a) -> 'a" + "rendered": "let fold: (t<'key, 'value, _>, ~initial: 'a, ~f: ('a, ~key: 'key, ~value: 'value) => 'a) => 'a" }, "info": { "deprecated": null, @@ -30209,7 +30241,7 @@ "name": "forEach", "qualified_name": "TableclothMap.forEach", "type": { - "rendered": "('a, 'value, 'b) TableclothMap.t -> f:('value -> unit) -> unit" + "rendered": "let forEach: (t<_, 'value, _>, ~f: 'value => unit) => unit" }, "info": { "deprecated": null, @@ -30268,7 +30300,7 @@ "name": "forEachWithIndex", "qualified_name": "TableclothMap.forEachWithIndex", "type": { - "rendered": "('key, 'value, 'a) TableclothMap.t ->\n f:(key:'key -> value:'value -> unit) -> unit" + "rendered": "let forEachWithIndex: (t<'key, 'value, _>, ~f: (~key: 'key, ~value: 'value) => unit) => unit" }, "info": { "deprecated": null, @@ -30352,7 +30384,7 @@ "name": "keys", "qualified_name": "TableclothMap.keys", "type": { - "rendered": "('key, 'a, 'b) TableclothMap.t -> 'key list" + "rendered": "let keys: t<'key, _, _> => list<'key>" }, "info": { "deprecated": null, @@ -30446,7 +30478,7 @@ "name": "values", "qualified_name": "TableclothMap.values", "type": { - "rendered": "('a, 'value, 'b) TableclothMap.t -> 'value list" + "rendered": "let values: t<_, 'value, _> => list<'value>" }, "info": { "deprecated": null, @@ -30540,7 +30572,7 @@ "name": "toArray", "qualified_name": "TableclothMap.toArray", "type": { - "rendered": "('key, 'value, 'a) TableclothMap.t -> ('key * 'value) array" + "rendered": "let toArray: t<'key, 'value, _> => array<('key, 'value)>" }, "info": { "deprecated": null, @@ -30598,7 +30630,7 @@ "name": "toList", "qualified_name": "TableclothMap.toList", "type": { - "rendered": "('key, 'value, 'a) TableclothMap.t -> ('key * 'value) list" + "rendered": "let toList: t<'key, 'value, _> => list<('key, 'value)>" }, "info": { "deprecated": null, @@ -30700,7 +30732,7 @@ "name": "empty", "qualified_name": "TableclothMap.Poly.empty", "type": { - "rendered": "unit -> ('key, 'value) TableclothMap.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -30738,7 +30770,7 @@ "name": "singleton", "qualified_name": "TableclothMap.Poly.singleton", "type": { - "rendered": "key:'key -> value:'value -> ('key, 'value) TableclothMap.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -30812,7 +30844,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.Poly.fromArray", "type": { - "rendered": "('key * 'value) array -> ('key, 'value) TableclothMap.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -30870,7 +30902,7 @@ "name": "fromList", "qualified_name": "TableclothMap.Poly.fromList", "type": { - "rendered": "('key * 'value) list -> ('key, 'value) TableclothMap.Poly.t" + "rendered": "" }, "info": { "deprecated": null, @@ -30964,6 +30996,22 @@ "kind": { "tag": "ModuleStruct", "value": [ + { + "tag": "Type", + "value": { + "name": "identity", + "parameters": "", + "is_private": false, + "father": "TableclothMap.String", + "field_comment": null, + "kind": { + "tag": "TypeAbstract", + "value": null + }, + "manifest": null, + "info": null + } + }, { "tag": "Type", "value": { @@ -30979,7 +31027,7 @@ "manifest": { "tag": "Other", "value": { - "rendered": "'value Of(TableclothInt).t" + "rendered": "(TableclothInt.t, 'value, TableclothMap.Int.identity) TableclothMap.t" } }, "info": null @@ -30991,7 +31039,7 @@ "name": "empty", "qualified_name": "TableclothMap.Int.empty", "type": { - "rendered": "'value TableclothMap.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31029,7 +31077,7 @@ "name": "singleton", "qualified_name": "TableclothMap.Int.singleton", "type": { - "rendered": "key:int -> value:'value -> 'value TableclothMap.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31103,7 +31151,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.Int.fromArray", "type": { - "rendered": "(int * 'value) array -> 'value TableclothMap.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31161,7 +31209,7 @@ "name": "fromList", "qualified_name": "TableclothMap.Int.fromList", "type": { - "rendered": "(int * 'value) list -> 'value TableclothMap.Int.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31267,6 +31315,22 @@ "kind": { "tag": "ModuleStruct", "value": [ + { + "tag": "Type", + "value": { + "name": "identity", + "parameters": "", + "is_private": false, + "father": "TableclothMap.Int", + "field_comment": null, + "kind": { + "tag": "TypeAbstract", + "value": null + }, + "manifest": null, + "info": null + } + }, { "tag": "Type", "value": { @@ -31282,7 +31346,7 @@ "manifest": { "tag": "Other", "value": { - "rendered": "'value Of(TableclothString).t" + "rendered": "(TableclothString.t, 'value, TableclothMap.String.identity) TableclothMap.t" } }, "info": null @@ -31294,7 +31358,7 @@ "name": "empty", "qualified_name": "TableclothMap.String.empty", "type": { - "rendered": "'value TableclothMap.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31332,7 +31396,7 @@ "name": "singleton", "qualified_name": "TableclothMap.String.singleton", "type": { - "rendered": "key:string -> value:'value -> 'value TableclothMap.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31406,7 +31470,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.String.fromArray", "type": { - "rendered": "(string * 'value) array -> 'value TableclothMap.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31464,7 +31528,7 @@ "name": "fromList", "qualified_name": "TableclothMap.String.fromList", "type": { - "rendered": "(string * 'value) list -> 'value TableclothMap.String.t" + "rendered": "" }, "info": { "deprecated": null, @@ -31964,7 +32028,7 @@ "name": "some", "qualified_name": "TableclothOption.some", "type": { - "rendered": "'a -> 'a option" + "rendered": "let some: 'a => option<'a>" }, "info": { "deprecated": null, @@ -32123,7 +32187,7 @@ "name": "and_", "qualified_name": "TableclothOption.and_", "type": { - "rendered": "'a TableclothOption.t -> 'a TableclothOption.t -> 'a TableclothOption.t" + "rendered": "let and_: (t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -32286,7 +32350,7 @@ "name": "or_", "qualified_name": "TableclothOption.or_", "type": { - "rendered": "'a TableclothOption.t -> 'a TableclothOption.t -> 'a TableclothOption.t" + "rendered": "let or_: (t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -32445,7 +32509,7 @@ "name": "orElse", "qualified_name": "TableclothOption.orElse", "type": { - "rendered": "'a TableclothOption.t -> 'a TableclothOption.t -> 'a TableclothOption.t" + "rendered": "let orElse: (t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -32608,7 +32672,7 @@ "name": "both", "qualified_name": "TableclothOption.both", "type": { - "rendered": "'a TableclothOption.t ->\n 'b TableclothOption.t -> ('a * 'b) TableclothOption.t" + "rendered": "let both: (t<'a>, t<'b>) => t<('a, 'b)>" }, "info": { "deprecated": null, @@ -32743,7 +32807,7 @@ "name": "flatten", "qualified_name": "TableclothOption.flatten", "type": { - "rendered": "'a TableclothOption.t TableclothOption.t -> 'a TableclothOption.t" + "rendered": "let flatten: t> => t<'a>" }, "info": { "deprecated": null, @@ -32839,7 +32903,7 @@ "name": "map", "qualified_name": "TableclothOption.map", "type": { - "rendered": "'a TableclothOption.t -> f:('a -> 'b) -> 'b TableclothOption.t" + "rendered": "let map: (t<'a>, ~f: 'a => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -32979,7 +33043,7 @@ "name": "map2", "qualified_name": "TableclothOption.map2", "type": { - "rendered": "'a TableclothOption.t ->\n 'b TableclothOption.t -> f:('a -> 'b -> 'c) -> 'c TableclothOption.t" + "rendered": "let map2: (t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" }, "info": { "deprecated": null, @@ -33158,7 +33222,7 @@ "name": "andThen", "qualified_name": "TableclothOption.andThen", "type": { - "rendered": "'a TableclothOption.t ->\n f:('a -> 'b TableclothOption.t) -> 'b TableclothOption.t" + "rendered": "let andThen: (t<'a>, ~f: 'a => t<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -33381,7 +33445,7 @@ "name": "unwrap", "qualified_name": "TableclothOption.unwrap", "type": { - "rendered": "'a TableclothOption.t -> default:'a -> 'a" + "rendered": "let unwrap: (t<'a>, ~default: 'a) => 'a" }, "info": { "deprecated": null, @@ -33658,7 +33722,7 @@ "name": "unwrapUnsafe", "qualified_name": "TableclothOption.unwrapUnsafe", "type": { - "rendered": "'a TableclothOption.t -> 'a" + "rendered": "let unwrapUnsafe: t<'a> => 'a" }, "info": { "deprecated": null, @@ -33881,7 +33945,7 @@ "name": "isSome", "qualified_name": "TableclothOption.isSome", "type": { - "rendered": "'a TableclothOption.t -> bool" + "rendered": "let isSome: t<'a> => bool" }, "info": { "deprecated": null, @@ -34002,7 +34066,7 @@ "name": "isNone", "qualified_name": "TableclothOption.isNone", "type": { - "rendered": "'a TableclothOption.t -> bool" + "rendered": "let isNone: t<'a> => bool" }, "info": { "deprecated": null, @@ -34123,7 +34187,7 @@ "name": "tap", "qualified_name": "TableclothOption.tap", "type": { - "rendered": "'a TableclothOption.t -> f:('a -> unit) -> unit" + "rendered": "let tap: (t<'a>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -34161,7 +34225,7 @@ "name": "toArray", "qualified_name": "TableclothOption.toArray", "type": { - "rendered": "'a TableclothOption.t -> 'a array" + "rendered": "let toArray: t<'a> => array<'a>" }, "info": { "deprecated": null, @@ -34290,7 +34354,7 @@ "name": "toList", "qualified_name": "TableclothOption.toList", "type": { - "rendered": "'a TableclothOption.t -> 'a list" + "rendered": "let toList: t<'a> => list<'a>" }, "info": { "deprecated": null, @@ -34437,7 +34501,7 @@ "name": "equal", "qualified_name": "TableclothOption.equal", "type": { - "rendered": "('a -> 'a -> bool) -> 'a TableclothOption.t -> 'a TableclothOption.t -> bool" + "rendered": "let equal: (('a, 'a) => bool, t<'a>, t<'a>) => bool" }, "info": { "deprecated": null, @@ -34544,7 +34608,7 @@ "name": "compare", "qualified_name": "TableclothOption.compare", "type": { - "rendered": "('a -> 'a -> int) -> 'a TableclothOption.t -> 'a TableclothOption.t -> int" + "rendered": "let compare: (('a, 'a) => int, t<'a>, t<'a>) => int" }, "info": { "deprecated": null, @@ -34721,7 +34785,7 @@ "name": "(|?)", "qualified_name": "TableclothOption.(|?)", "type": { - "rendered": "'a TableclothOption.t -> 'a -> 'a" + "rendered": "" }, "info": { "deprecated": null, @@ -34822,7 +34886,7 @@ "name": "(>>|)", "qualified_name": "TableclothOption.(>>|)", "type": { - "rendered": "'a TableclothOption.t -> ('a -> 'b) -> 'b TableclothOption.t" + "rendered": "" }, "info": { "deprecated": null, @@ -34923,7 +34987,7 @@ "name": "(>>=)", "qualified_name": "TableclothOption.(>>=)", "type": { - "rendered": "'a TableclothOption.t ->\n ('a -> 'b TableclothOption.t) -> 'b TableclothOption.t" + "rendered": "" }, "info": { "deprecated": null, @@ -35118,7 +35182,7 @@ "name": "fromChar", "qualified_name": "TableclothString.fromChar", "type": { - "rendered": "char -> string" + "rendered": "let fromChar: char => string" }, "info": { "deprecated": null, @@ -35156,7 +35220,7 @@ "name": "fromArray", "qualified_name": "TableclothString.fromArray", "type": { - "rendered": "char array -> string" + "rendered": "let fromArray: array => string" }, "info": { "deprecated": null, @@ -35269,7 +35333,7 @@ "name": "fromList", "qualified_name": "TableclothString.fromList", "type": { - "rendered": "char list -> string" + "rendered": "let fromList: list => string" }, "info": { "deprecated": null, @@ -35382,7 +35446,7 @@ "name": "repeat", "qualified_name": "TableclothString.repeat", "type": { - "rendered": "string -> count:int -> string" + "rendered": "let repeat: (string, ~count: int) => string" }, "info": { "deprecated": null, @@ -35539,7 +35603,7 @@ "name": "initialize", "qualified_name": "TableclothString.initialize", "type": { - "rendered": "int -> f:(int -> char) -> string" + "rendered": "let initialize: (int, ~f: int => char) => string" }, "info": { "deprecated": null, @@ -35639,7 +35703,7 @@ "name": "get", "qualified_name": "TableclothString.get", "type": { - "rendered": "string -> int -> char" + "rendered": "let get: (string, int) => char" }, "info": { "deprecated": null, @@ -35677,7 +35741,7 @@ "name": "getAt", "qualified_name": "TableclothString.getAt", "type": { - "rendered": "string -> index:int -> char option" + "rendered": "let getAt: (string, ~index: int) => option" }, "info": { "deprecated": null, @@ -35719,7 +35783,7 @@ "name": "(.?[])", "qualified_name": "TableclothString.(.?[])", "type": { - "rendered": "string -> int -> char option" + "rendered": "Failed to retrieve type of: TableclothString(.?[])" }, "info": { "deprecated": null, @@ -35857,7 +35921,7 @@ "name": "reverse", "qualified_name": "TableclothString.reverse", "type": { - "rendered": "string -> string" + "rendered": "let reverse: string => string" }, "info": { "deprecated": null, @@ -35952,7 +36016,7 @@ "name": "slice", "qualified_name": "TableclothString.slice", "type": { - "rendered": "?to_:int -> string -> from:int -> string" + "rendered": "let slice: (~to_: int=?, string, ~from: int) => string" }, "info": { "deprecated": null, @@ -36036,7 +36100,7 @@ "name": "isEmpty", "qualified_name": "TableclothString.isEmpty", "type": { - "rendered": "string -> bool" + "rendered": "let isEmpty: string => bool" }, "info": { "deprecated": null, @@ -36074,7 +36138,7 @@ "name": "length", "qualified_name": "TableclothString.length", "type": { - "rendered": "string -> int" + "rendered": "let length: string => int" }, "info": { "deprecated": null, @@ -36177,7 +36241,7 @@ "name": "startsWith", "qualified_name": "TableclothString.startsWith", "type": { - "rendered": "string -> prefix:string -> bool" + "rendered": "let startsWith: (string, ~prefix: string) => bool" }, "info": { "deprecated": null, @@ -36266,7 +36330,7 @@ "name": "endsWith", "qualified_name": "TableclothString.endsWith", "type": { - "rendered": "string -> suffix:string -> bool" + "rendered": "let endsWith: (string, ~suffix: string) => bool" }, "info": { "deprecated": null, @@ -36359,7 +36423,7 @@ "name": "includes", "qualified_name": "TableclothString.includes", "type": { - "rendered": "string -> substring:string -> bool" + "rendered": "let includes: (string, ~substring: string) => bool" }, "info": { "deprecated": null, @@ -36455,7 +36519,7 @@ "name": "isCapitalized", "qualified_name": "TableclothString.isCapitalized", "type": { - "rendered": "string -> bool" + "rendered": "let isCapitalized: string => bool" }, "info": { "deprecated": null, @@ -36561,7 +36625,7 @@ "name": "dropLeft", "qualified_name": "TableclothString.dropLeft", "type": { - "rendered": "string -> count:int -> string" + "rendered": "let dropLeft: (string, ~count: int) => string" }, "info": { "deprecated": null, @@ -36687,7 +36751,7 @@ "name": "dropRight", "qualified_name": "TableclothString.dropRight", "type": { - "rendered": "string -> count:int -> string" + "rendered": "let dropRight: (string, ~count: int) => string" }, "info": { "deprecated": null, @@ -36813,7 +36877,7 @@ "name": "indexOf", "qualified_name": "TableclothString.indexOf", "type": { - "rendered": "string -> string -> int option" + "rendered": "let indexOf: (string, string) => option" }, "info": { "deprecated": null, @@ -36910,7 +36974,7 @@ "name": "indexOfRight", "qualified_name": "TableclothString.indexOfRight", "type": { - "rendered": "string -> string -> int option" + "rendered": "let indexOfRight: (string, string) => option" }, "info": { "deprecated": null, @@ -37007,7 +37071,7 @@ "name": "insertAt", "qualified_name": "TableclothString.insertAt", "type": { - "rendered": "string -> index:int -> value:TableclothString.t -> string" + "rendered": "let insertAt: (string, ~index: int, ~value: t) => string" }, "info": { "deprecated": null, @@ -37152,7 +37216,7 @@ "name": "toLowercase", "qualified_name": "TableclothString.toLowercase", "type": { - "rendered": "string -> string" + "rendered": "let toLowercase: string => string" }, "info": { "deprecated": null, @@ -37247,7 +37311,7 @@ "name": "toUppercase", "qualified_name": "TableclothString.toUppercase", "type": { - "rendered": "string -> string" + "rendered": "let toUppercase: string => string" }, "info": { "deprecated": null, @@ -37342,7 +37406,7 @@ "name": "uncapitalize", "qualified_name": "TableclothString.uncapitalize", "type": { - "rendered": "string -> string" + "rendered": "let uncapitalize: string => string" }, "info": { "deprecated": null, @@ -37437,7 +37501,7 @@ "name": "capitalize", "qualified_name": "TableclothString.capitalize", "type": { - "rendered": "string -> string" + "rendered": "let capitalize: string => string" }, "info": { "deprecated": null, @@ -37540,7 +37604,7 @@ "name": "trim", "qualified_name": "TableclothString.trim", "type": { - "rendered": "string -> string" + "rendered": "let trim: string => string" }, "info": { "deprecated": null, @@ -37656,7 +37720,7 @@ "name": "trimLeft", "qualified_name": "TableclothString.trimLeft", "type": { - "rendered": "string -> string" + "rendered": "let trimLeft: string => string" }, "info": { "deprecated": null, @@ -37714,7 +37778,7 @@ "name": "trimRight", "qualified_name": "TableclothString.trimRight", "type": { - "rendered": "string -> string" + "rendered": "let trimRight: string => string" }, "info": { "deprecated": null, @@ -37772,7 +37836,7 @@ "name": "padLeft", "qualified_name": "TableclothString.padLeft", "type": { - "rendered": "string -> int -> with_:string -> string" + "rendered": "let padLeft: (string, int, ~with_: string) => string" }, "info": { "deprecated": null, @@ -37862,7 +37926,7 @@ "name": "padRight", "qualified_name": "TableclothString.padRight", "type": { - "rendered": "string -> int -> with_:string -> string" + "rendered": "let padRight: (string, int, ~with_: string) => string" }, "info": { "deprecated": null, @@ -37952,7 +38016,7 @@ "name": "uncons", "qualified_name": "TableclothString.uncons", "type": { - "rendered": "string -> (char * string) option" + "rendered": "let uncons: string => option<(char, string)>" }, "info": { "deprecated": null, @@ -38104,7 +38168,7 @@ "name": "split", "qualified_name": "TableclothString.split", "type": { - "rendered": "string -> on:string -> string list" + "rendered": "let split: (string, ~on: string) => list" }, "info": { "deprecated": null, @@ -38204,7 +38268,7 @@ "name": "forEach", "qualified_name": "TableclothString.forEach", "type": { - "rendered": "string -> f:(char -> unit) -> unit" + "rendered": "let forEach: (string, ~f: char => unit) => unit" }, "info": { "deprecated": null, @@ -38250,7 +38314,7 @@ "name": "fold", "qualified_name": "TableclothString.fold", "type": { - "rendered": "string -> initial:'a -> f:('a -> char -> 'a) -> 'a" + "rendered": "let fold: (string, ~initial: 'a, ~f: ('a, char) => 'a) => 'a" }, "info": { "deprecated": null, @@ -38346,7 +38410,7 @@ "name": "toArray", "qualified_name": "TableclothString.toArray", "type": { - "rendered": "string -> char array" + "rendered": "let toArray: string => array" }, "info": { "deprecated": null, @@ -38451,7 +38515,7 @@ "name": "toList", "qualified_name": "TableclothString.toList", "type": { - "rendered": "string -> char list" + "rendered": "let toList: string => list" }, "info": { "deprecated": null, @@ -38574,7 +38638,7 @@ "name": "equal", "qualified_name": "TableclothString.equal", "type": { - "rendered": "string -> string -> bool" + "rendered": "let equal: (string, string) => bool" }, "info": { "deprecated": null, @@ -38612,7 +38676,7 @@ "name": "compare", "qualified_name": "TableclothString.compare", "type": { - "rendered": "string -> string -> int" + "rendered": "let compare: (string, string) => int" }, "info": { "deprecated": null, @@ -38827,7 +38891,7 @@ "name": "comparator", "qualified_name": "TableclothString.comparator", "type": { - "rendered": "(TableclothString.t, TableclothString.identity) TableclothComparator.t" + "rendered": "let comparator: TableclothComparator.t" }, "info": null, "parameters": { @@ -39020,7 +39084,7 @@ "name": "fromCode", "qualified_name": "TableclothChar.fromCode", "type": { - "rendered": "int -> char option" + "rendered": "let fromCode: int => option" }, "info": { "deprecated": null, @@ -39191,7 +39255,7 @@ "name": "fromString", "qualified_name": "TableclothChar.fromString", "type": { - "rendered": "string -> char option" + "rendered": "let fromString: string => option" }, "info": { "deprecated": null, @@ -39309,7 +39373,7 @@ "name": "isLowercase", "qualified_name": "TableclothChar.isLowercase", "type": { - "rendered": "char -> bool" + "rendered": "let isLowercase: char => bool" }, "info": { "deprecated": null, @@ -39438,7 +39502,7 @@ "name": "isUppercase", "qualified_name": "TableclothChar.isUppercase", "type": { - "rendered": "char -> bool" + "rendered": "let isUppercase: char => bool" }, "info": { "deprecated": null, @@ -39567,7 +39631,7 @@ "name": "isLetter", "qualified_name": "TableclothChar.isLetter", "type": { - "rendered": "char -> bool" + "rendered": "let isLetter: char => bool" }, "info": { "deprecated": null, @@ -39696,7 +39760,7 @@ "name": "isDigit", "qualified_name": "TableclothChar.isDigit", "type": { - "rendered": "char -> bool" + "rendered": "let isDigit: char => bool" }, "info": { "deprecated": null, @@ -39814,7 +39878,7 @@ "name": "isAlphanumeric", "qualified_name": "TableclothChar.isAlphanumeric", "type": { - "rendered": "char -> bool" + "rendered": "let isAlphanumeric: char => bool" }, "info": { "deprecated": null, @@ -39954,7 +40018,7 @@ "name": "isPrintable", "qualified_name": "TableclothChar.isPrintable", "type": { - "rendered": "char -> bool" + "rendered": "let isPrintable: char => bool" }, "info": { "deprecated": null, @@ -40132,7 +40196,7 @@ "name": "isWhitespace", "qualified_name": "TableclothChar.isWhitespace", "type": { - "rendered": "char -> bool" + "rendered": "let isWhitespace: char => bool" }, "info": { "deprecated": null, @@ -40300,7 +40364,7 @@ "name": "toLowercase", "qualified_name": "TableclothChar.toLowercase", "type": { - "rendered": "char -> char" + "rendered": "let toLowercase: char => char" }, "info": { "deprecated": null, @@ -40396,7 +40460,7 @@ "name": "toUppercase", "qualified_name": "TableclothChar.toUppercase", "type": { - "rendered": "char -> char" + "rendered": "let toUppercase: char => char" }, "info": { "deprecated": null, @@ -40492,7 +40556,7 @@ "name": "toCode", "qualified_name": "TableclothChar.toCode", "type": { - "rendered": "char -> int" + "rendered": "let toCode: char => int" }, "info": { "deprecated": null, @@ -40605,7 +40669,7 @@ "name": "toString", "qualified_name": "TableclothChar.toString", "type": { - "rendered": "char -> string" + "rendered": "let toString: char => string" }, "info": { "deprecated": null, @@ -40701,7 +40765,7 @@ "name": "toDigit", "qualified_name": "TableclothChar.toDigit", "type": { - "rendered": "char -> int option" + "rendered": "let toDigit: char => option" }, "info": { "deprecated": null, @@ -40844,7 +40908,7 @@ "name": "equal", "qualified_name": "TableclothChar.equal", "type": { - "rendered": "TableclothChar.t -> TableclothChar.t -> bool" + "rendered": "let equal: (t, t) => bool" }, "info": { "deprecated": null, @@ -40902,7 +40966,7 @@ "name": "compare", "qualified_name": "TableclothChar.compare", "type": { - "rendered": "TableclothChar.t -> TableclothChar.t -> int" + "rendered": "let compare: (t, t) => int" }, "info": { "deprecated": null, @@ -41052,7 +41116,7 @@ "name": "comparator", "qualified_name": "TableclothChar.comparator", "type": { - "rendered": "(TableclothChar.t, TableclothChar.identity) TableclothComparator.t" + "rendered": "let comparator: TableclothComparator.t" }, "info": null, "parameters": { @@ -41094,7 +41158,7 @@ "name": "toBeltComparator", "qualified_name": "Internal.toBeltComparator", "type": { - "rendered": "(module TableclothComparator.S with type identity = 'id and type t = 'a) ->\n ('a, 'id) Belt.Id.comparable" + "rendered": "" }, "info": null, "parameters": { @@ -41543,7 +41607,7 @@ "name": "zero", "qualified_name": "TableclothInt.zero", "type": { - "rendered": "TableclothInt.t" + "rendered": "let zero: t" }, "info": { "deprecated": null, @@ -41589,7 +41653,7 @@ "name": "one", "qualified_name": "TableclothInt.one", "type": { - "rendered": "TableclothInt.t" + "rendered": "let one: t" }, "info": { "deprecated": null, @@ -41635,7 +41699,7 @@ "name": "maximumValue", "qualified_name": "TableclothInt.maximumValue", "type": { - "rendered": "TableclothInt.t" + "rendered": "let maximumValue: t" }, "info": { "deprecated": null, @@ -41681,7 +41745,7 @@ "name": "minimumValue", "qualified_name": "TableclothInt.minimumValue", "type": { - "rendered": "TableclothInt.t" + "rendered": "let minimumValue: t" }, "info": { "deprecated": null, @@ -41745,7 +41809,7 @@ "name": "fromString", "qualified_name": "TableclothInt.fromString", "type": { - "rendered": "string -> TableclothInt.t option" + "rendered": "let fromString: string => option" }, "info": { "deprecated": null, @@ -42095,7 +42159,7 @@ "name": "add", "qualified_name": "TableclothInt.add", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "let add: (t, t) => t" }, "info": { "deprecated": null, @@ -42256,7 +42320,7 @@ "name": "(+)", "qualified_name": "TableclothInt.(+)", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "" }, "info": { "deprecated": null, @@ -42310,7 +42374,7 @@ "name": "subtract", "qualified_name": "TableclothInt.subtract", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "let subtract: (t, t) => t" }, "info": { "deprecated": null, @@ -42386,7 +42450,7 @@ "name": "(-)", "qualified_name": "TableclothInt.(-)", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "" }, "info": { "deprecated": null, @@ -42440,7 +42504,7 @@ "name": "multiply", "qualified_name": "TableclothInt.multiply", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "let multiply: (t, t) => t" }, "info": { "deprecated": null, @@ -42524,7 +42588,7 @@ "name": "( * )", "qualified_name": "TableclothInt.( * )", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "" }, "info": { "deprecated": null, @@ -42578,7 +42642,7 @@ "name": "divide", "qualified_name": "TableclothInt.divide", "type": { - "rendered": "TableclothInt.t -> by:TableclothInt.t -> TableclothInt.t" + "rendered": "let divide: (t, ~by: t) => t" }, "info": { "deprecated": null, @@ -42716,7 +42780,7 @@ "name": "(/)", "qualified_name": "TableclothInt.(/)", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "" }, "info": { "deprecated": null, @@ -42770,7 +42834,7 @@ "name": "(/.)", "qualified_name": "TableclothInt.(/.)", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> float" + "rendered": "" }, "info": { "deprecated": null, @@ -42866,7 +42930,7 @@ "name": "power", "qualified_name": "TableclothInt.power", "type": { - "rendered": "base:TableclothInt.t -> exponent:TableclothInt.t -> TableclothInt.t" + "rendered": "let power: (~base: t, ~exponent: t) => t" }, "info": { "deprecated": null, @@ -42971,7 +43035,7 @@ "name": "( ** )", "qualified_name": "TableclothInt.( ** )", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "" }, "info": { "deprecated": null, @@ -43025,7 +43089,7 @@ "name": "negate", "qualified_name": "TableclothInt.negate", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t" + "rendered": "let negate: t => t" }, "info": { "deprecated": null, @@ -43152,7 +43216,7 @@ "name": "(~-)", "qualified_name": "TableclothInt.(~-)", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t" + "rendered": "" }, "info": { "deprecated": null, @@ -43206,7 +43270,7 @@ "name": "absolute", "qualified_name": "TableclothInt.absolute", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t" + "rendered": "let absolute: t => t" }, "info": { "deprecated": null, @@ -43318,7 +43382,7 @@ "name": "modulo", "qualified_name": "TableclothInt.modulo", "type": { - "rendered": "TableclothInt.t -> by:TableclothInt.t -> TableclothInt.t" + "rendered": "let modulo: (t, ~by: t) => t" }, "info": { "deprecated": null, @@ -43596,7 +43660,7 @@ "name": "(mod)", "qualified_name": "TableclothInt.(mod)", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "" }, "info": { "deprecated": null, @@ -43650,7 +43714,7 @@ "name": "remainder", "qualified_name": "TableclothInt.remainder", "type": { - "rendered": "TableclothInt.t -> by:TableclothInt.t -> TableclothInt.t" + "rendered": "let remainder: (t, ~by: t) => t" }, "info": { "deprecated": null, @@ -43752,7 +43816,7 @@ "name": "maximum", "qualified_name": "TableclothInt.maximum", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "let maximumValue: t" }, "info": { "deprecated": null, @@ -43845,7 +43909,7 @@ "name": "minimum", "qualified_name": "TableclothInt.minimum", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> TableclothInt.t" + "rendered": "let minimumValue: t" }, "info": { "deprecated": null, @@ -43956,7 +44020,7 @@ "name": "isEven", "qualified_name": "TableclothInt.isEven", "type": { - "rendered": "TableclothInt.t -> bool" + "rendered": "let isEven: t => bool" }, "info": { "deprecated": null, @@ -44060,7 +44124,7 @@ "name": "isOdd", "qualified_name": "TableclothInt.isOdd", "type": { - "rendered": "TableclothInt.t -> bool" + "rendered": "let isOdd: t => bool" }, "info": { "deprecated": null, @@ -44164,7 +44228,7 @@ "name": "clamp", "qualified_name": "TableclothInt.clamp", "type": { - "rendered": "TableclothInt.t ->\n lower:TableclothInt.t -> upper:TableclothInt.t -> TableclothInt.t" + "rendered": "let clamp: (t, ~lower: t, ~upper: t) => t" }, "info": { "deprecated": null, @@ -44325,7 +44389,7 @@ "name": "inRange", "qualified_name": "TableclothInt.inRange", "type": { - "rendered": "TableclothInt.t -> lower:TableclothInt.t -> upper:TableclothInt.t -> bool" + "rendered": "let inRange: (t, ~lower: t, ~upper: t) => bool" }, "info": { "deprecated": null, @@ -44504,7 +44568,7 @@ "name": "toFloat", "qualified_name": "TableclothInt.toFloat", "type": { - "rendered": "TableclothInt.t -> float" + "rendered": "let toFloat: t => float" }, "info": { "deprecated": null, @@ -44618,7 +44682,7 @@ "name": "toString", "qualified_name": "TableclothInt.toString", "type": { - "rendered": "TableclothInt.t -> string" + "rendered": "let toString: t => string" }, "info": { "deprecated": null, @@ -44771,7 +44835,7 @@ "name": "equal", "qualified_name": "TableclothInt.equal", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> bool" + "rendered": "let equal: (t, t) => bool" }, "info": { "deprecated": null, @@ -44817,7 +44881,7 @@ "name": "compare", "qualified_name": "TableclothInt.compare", "type": { - "rendered": "TableclothInt.t -> TableclothInt.t -> int" + "rendered": "let compare: (t, t) => int" }, "info": { "deprecated": null, @@ -44955,7 +45019,7 @@ "name": "comparator", "qualified_name": "TableclothInt.comparator", "type": { - "rendered": "(TableclothInt.t, TableclothInt.identity) TableclothComparator.t" + "rendered": "let comparator: TableclothComparator.t" }, "info": null, "parameters": { @@ -45014,7 +45078,7 @@ "name": "identity", "qualified_name": "TableclothFun.identity", "type": { - "rendered": "'a -> 'a" + "rendered": "" }, "info": { "deprecated": null, @@ -45126,7 +45190,7 @@ "name": "ignore", "qualified_name": "TableclothFun.ignore", "type": { - "rendered": "'a -> unit" + "rendered": "" }, "info": { "deprecated": null, @@ -45220,7 +45284,7 @@ "name": "constant", "qualified_name": "TableclothFun.constant", "type": { - "rendered": "'a -> 'b -> 'a" + "rendered": "let constant: ('a, 'b) => 'a" }, "info": { "deprecated": null, @@ -45362,7 +45426,7 @@ "name": "sequence", "qualified_name": "TableclothFun.sequence", "type": { - "rendered": "'a -> 'b -> 'b" + "rendered": "let sequence: ('a, 'b) => 'b" }, "info": { "deprecated": null, @@ -45400,7 +45464,7 @@ "name": "flip", "qualified_name": "TableclothFun.flip", "type": { - "rendered": "('a -> 'b -> 'c) -> 'b -> 'a -> 'c" + "rendered": "let flip: (('a, 'b) => 'c, 'b, 'a) => 'c" }, "info": { "deprecated": null, @@ -45494,7 +45558,7 @@ "name": "negate", "qualified_name": "TableclothFun.negate", "type": { - "rendered": "('a -> bool) -> 'a -> bool" + "rendered": "let negate: ('a => bool, 'a) => bool" }, "info": { "deprecated": null, @@ -45652,7 +45716,7 @@ "name": "apply", "qualified_name": "TableclothFun.apply", "type": { - "rendered": "('a -> 'b) -> 'a -> 'b" + "rendered": "let apply: ('a => 'b, 'a) => 'b" }, "info": { "deprecated": null, @@ -45706,7 +45770,7 @@ "name": "(<|)", "qualified_name": "TableclothFun.(<|)", "type": { - "rendered": "('a -> 'b) -> 'a -> 'b" + "rendered": "" }, "info": { "deprecated": null, @@ -45804,7 +45868,7 @@ "name": "pipe", "qualified_name": "TableclothFun.pipe", "type": { - "rendered": "'a -> ('a -> 'b) -> 'b" + "rendered": "" }, "info": { "deprecated": null, @@ -45858,7 +45922,7 @@ "name": "(|>)", "qualified_name": "TableclothFun.(|>)", "type": { - "rendered": "'a -> ('a -> 'b) -> 'b" + "rendered": "" }, "info": { "deprecated": null, @@ -45998,7 +46062,7 @@ "name": "compose", "qualified_name": "TableclothFun.compose", "type": { - "rendered": "('b -> 'c) -> ('a -> 'b) -> 'a -> 'c" + "rendered": "let compose: ('b => 'c, 'a => 'b, 'a) => 'c" }, "info": { "deprecated": null, @@ -46105,7 +46169,7 @@ "name": "(<<)", "qualified_name": "TableclothFun.(<<)", "type": { - "rendered": "('b -> 'c) -> ('a -> 'b) -> 'a -> 'c" + "rendered": "" }, "info": { "deprecated": null, @@ -46159,7 +46223,7 @@ "name": "composeRight", "qualified_name": "TableclothFun.composeRight", "type": { - "rendered": "('a -> 'b) -> ('b -> 'c) -> 'a -> 'c" + "rendered": "let composeRight: ('a => 'b, 'b => 'c, 'a) => 'c" }, "info": { "deprecated": null, @@ -46220,7 +46284,7 @@ "name": "(>>)", "qualified_name": "TableclothFun.(>>)", "type": { - "rendered": "('a -> 'b) -> ('b -> 'c) -> 'a -> 'c" + "rendered": "" }, "info": { "deprecated": null, @@ -46274,7 +46338,7 @@ "name": "tap", "qualified_name": "TableclothFun.tap", "type": { - "rendered": "'a -> f:('a -> unit) -> 'a" + "rendered": "let tap: ('a, ~f: 'a => unit) => 'a" }, "info": { "deprecated": null, @@ -46387,7 +46451,7 @@ "name": "forever", "qualified_name": "TableclothFun.forever", "type": { - "rendered": "(unit -> unit) -> exn" + "rendered": "let forever: (unit => unit) => exn" }, "info": { "deprecated": null, @@ -46433,7 +46497,7 @@ "name": "times", "qualified_name": "TableclothFun.times", "type": { - "rendered": "int -> f:(unit -> unit) -> unit" + "rendered": "let times: (int, ~f: unit => unit) => unit" }, "info": { "deprecated": null, @@ -46507,7 +46571,7 @@ "name": "curry", "qualified_name": "TableclothFun.curry", "type": { - "rendered": "('a * 'b -> 'c) -> 'a -> 'b -> 'c" + "rendered": "let curry: ((('a, 'b)) => 'c, 'a, 'b) => 'c" }, "info": { "deprecated": null, @@ -46597,7 +46661,7 @@ "name": "uncurry", "qualified_name": "TableclothFun.uncurry", "type": { - "rendered": "('a -> 'b -> 'c) -> 'a * 'b -> 'c" + "rendered": "let uncurry: (('a, 'b) => 'c, ('a, 'b)) => 'c" }, "info": { "deprecated": null, @@ -46671,7 +46735,7 @@ "name": "curry3", "qualified_name": "TableclothFun.curry3", "type": { - "rendered": "('a * 'b * 'c -> 'd) -> 'a -> 'b -> 'c -> 'd" + "rendered": "let curry3: ((('a, 'b, 'c)) => 'd, 'a, 'b, 'c) => 'd" }, "info": { "deprecated": null, @@ -46745,7 +46809,7 @@ "name": "uncurry3", "qualified_name": "TableclothFun.uncurry3", "type": { - "rendered": "('a -> 'b -> 'c -> 'd) -> 'a * 'b * 'c -> 'd" + "rendered": "let uncurry3: (('a, 'b, 'c) => 'd, ('a, 'b, 'c)) => 'd" }, "info": { "deprecated": null, @@ -47031,7 +47095,7 @@ "name": "zero", "qualified_name": "TableclothFloat.zero", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let zero: t" }, "info": { "deprecated": null, @@ -47077,7 +47141,7 @@ "name": "one", "qualified_name": "TableclothFloat.one", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let one: t" }, "info": { "deprecated": null, @@ -47123,7 +47187,7 @@ "name": "nan", "qualified_name": "TableclothFloat.nan", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let nan: t" }, "info": { "deprecated": null, @@ -47306,7 +47370,7 @@ "name": "infinity", "qualified_name": "TableclothFloat.infinity", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let infinity: t" }, "info": { "deprecated": null, @@ -47371,7 +47435,7 @@ "name": "negativeInfinity", "qualified_name": "TableclothFloat.negativeInfinity", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let negativeInfinity: t" }, "info": { "deprecated": null, @@ -47425,7 +47489,7 @@ "name": "e", "qualified_name": "TableclothFloat.e", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let e: t" }, "info": { "deprecated": null, @@ -47479,7 +47543,7 @@ "name": "pi", "qualified_name": "TableclothFloat.pi", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let pi: t" }, "info": { "deprecated": null, @@ -47533,7 +47597,7 @@ "name": "epsilon", "qualified_name": "TableclothFloat.epsilon", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let epsilon: t" }, "info": { "deprecated": null, @@ -47571,7 +47635,7 @@ "name": "largestValue", "qualified_name": "TableclothFloat.largestValue", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let largestValue: t" }, "info": { "deprecated": null, @@ -47613,7 +47677,7 @@ "name": "smallestValue", "qualified_name": "TableclothFloat.smallestValue", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let smallestValue: t" }, "info": { "deprecated": null, @@ -47659,7 +47723,7 @@ "name": "maximumSafeInteger", "qualified_name": "TableclothFloat.maximumSafeInteger", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let maximumSafeInteger: t" }, "info": { "deprecated": null, @@ -47709,7 +47773,7 @@ "name": "minimumSafeInteger", "qualified_name": "TableclothFloat.minimumSafeInteger", "type": { - "rendered": "TableclothFloat.t" + "rendered": "let minimumSafeInteger: t" }, "info": { "deprecated": null, @@ -47777,7 +47841,7 @@ "name": "fromInt", "qualified_name": "TableclothFloat.fromInt", "type": { - "rendered": "int -> TableclothFloat.t" + "rendered": "let fromInt: int => t" }, "info": { "deprecated": null, @@ -47875,7 +47939,7 @@ "name": "fromString", "qualified_name": "TableclothFloat.fromString", "type": { - "rendered": "string -> TableclothFloat.t option" + "rendered": "let fromString: string => option" }, "info": { "deprecated": null, @@ -48074,7 +48138,7 @@ "name": "add", "qualified_name": "TableclothFloat.add", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "let add: (t, t) => t" }, "info": { "deprecated": null, @@ -48335,7 +48399,7 @@ "name": "(+)", "qualified_name": "TableclothFloat.(+)", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "" }, "info": { "deprecated": null, @@ -48389,7 +48453,7 @@ "name": "subtract", "qualified_name": "TableclothFloat.subtract", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "let subtract: (t, t) => t" }, "info": { "deprecated": null, @@ -48490,7 +48554,7 @@ "name": "(-)", "qualified_name": "TableclothFloat.(-)", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "" }, "info": { "deprecated": null, @@ -48544,7 +48608,7 @@ "name": "multiply", "qualified_name": "TableclothFloat.multiply", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "let multiply: (t, t) => t" }, "info": { "deprecated": null, @@ -48645,7 +48709,7 @@ "name": "( * )", "qualified_name": "TableclothFloat.( * )", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "" }, "info": { "deprecated": null, @@ -48699,7 +48763,7 @@ "name": "divide", "qualified_name": "TableclothFloat.divide", "type": { - "rendered": "TableclothFloat.t -> by:TableclothFloat.t -> TableclothFloat.t" + "rendered": "let divide: (t, ~by: t) => t" }, "info": { "deprecated": null, @@ -48800,7 +48864,7 @@ "name": "(/)", "qualified_name": "TableclothFloat.(/)", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "" }, "info": { "deprecated": null, @@ -48854,7 +48918,7 @@ "name": "power", "qualified_name": "TableclothFloat.power", "type": { - "rendered": "base:TableclothFloat.t -> exponent:TableclothFloat.t -> TableclothFloat.t" + "rendered": "let power: (~base: t, ~exponent: t) => t" }, "info": { "deprecated": null, @@ -48955,7 +49019,7 @@ "name": "( ** )", "qualified_name": "TableclothFloat.( ** )", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "" }, "info": { "deprecated": null, @@ -49009,7 +49073,7 @@ "name": "negate", "qualified_name": "TableclothFloat.negate", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t" + "rendered": "let negate: t => t" }, "info": { "deprecated": null, @@ -49110,7 +49174,7 @@ "name": "(~-)", "qualified_name": "TableclothFloat.(~-)", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t" + "rendered": "" }, "info": { "deprecated": null, @@ -49164,7 +49228,7 @@ "name": "absolute", "qualified_name": "TableclothFloat.absolute", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t" + "rendered": "let absolute: t => t" }, "info": { "deprecated": null, @@ -49254,7 +49318,7 @@ "name": "maximum", "qualified_name": "TableclothFloat.maximum", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "let maximumSafeInteger: t" }, "info": { "deprecated": null, @@ -49378,7 +49442,7 @@ "name": "minimum", "qualified_name": "TableclothFloat.minimum", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "let minimumSafeInteger: t" }, "info": { "deprecated": null, @@ -49502,7 +49566,7 @@ "name": "clamp", "qualified_name": "TableclothFloat.clamp", "type": { - "rendered": "TableclothFloat.t ->\n lower:TableclothFloat.t -> upper:TableclothFloat.t -> TableclothFloat.t" + "rendered": "let clamp: (t, ~lower: t, ~upper: t) => t" }, "info": { "deprecated": null, @@ -49681,7 +49745,7 @@ "name": "squareRoot", "qualified_name": "TableclothFloat.squareRoot", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t" + "rendered": "let squareRoot: t => t" }, "info": { "deprecated": null, @@ -49810,7 +49874,7 @@ "name": "log", "qualified_name": "TableclothFloat.log", "type": { - "rendered": "TableclothFloat.t -> base:TableclothFloat.t -> TableclothFloat.t" + "rendered": "let log: (t, ~base: t) => t" }, "info": { "deprecated": null, @@ -49913,7 +49977,7 @@ "name": "isNaN", "qualified_name": "TableclothFloat.isNaN", "type": { - "rendered": "TableclothFloat.t -> bool" + "rendered": "let isNaN: t => bool" }, "info": { "deprecated": null, @@ -50085,7 +50149,7 @@ "name": "isFinite", "qualified_name": "TableclothFloat.isFinite", "type": { - "rendered": "TableclothFloat.t -> bool" + "rendered": "let isFinite: t => bool" }, "info": { "deprecated": null, @@ -50239,7 +50303,7 @@ "name": "isInfinite", "qualified_name": "TableclothFloat.isInfinite", "type": { - "rendered": "TableclothFloat.t -> bool" + "rendered": "let isInfinite: t => bool" }, "info": { "deprecated": null, @@ -50357,7 +50421,7 @@ "name": "isInteger", "qualified_name": "TableclothFloat.isInteger", "type": { - "rendered": "TableclothFloat.t -> bool" + "rendered": "let isInteger: t => bool" }, "info": { "deprecated": null, @@ -50442,7 +50506,7 @@ "name": "isSafeInteger", "qualified_name": "TableclothFloat.isSafeInteger", "type": { - "rendered": "TableclothFloat.t -> bool" + "rendered": "let isSafeInteger: t => bool" }, "info": { "deprecated": null, @@ -50538,7 +50602,7 @@ "name": "inRange", "qualified_name": "TableclothFloat.inRange", "type": { - "rendered": "TableclothFloat.t ->\n lower:TableclothFloat.t -> upper:TableclothFloat.t -> bool" + "rendered": "let inRange: (t, ~lower: t, ~upper: t) => bool" }, "info": { "deprecated": null, @@ -50830,7 +50894,7 @@ "name": "hypotenuse", "qualified_name": "TableclothFloat.hypotenuse", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> TableclothFloat.t" + "rendered": "let hypotenuse: (t, t) => t" }, "info": { "deprecated": null, @@ -50940,7 +51004,7 @@ "name": "degrees", "qualified_name": "TableclothFloat.degrees", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.radians" + "rendered": "let degrees: t => radians" }, "info": { "deprecated": null, @@ -51072,7 +51136,7 @@ "name": "radians", "qualified_name": "TableclothFloat.radians", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.radians" + "rendered": "let radians: t => radians" }, "info": { "deprecated": null, @@ -51203,7 +51267,7 @@ "name": "turns", "qualified_name": "TableclothFloat.turns", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.radians" + "rendered": "let turns: t => radians" }, "info": { "deprecated": null, @@ -51350,7 +51414,7 @@ "name": "fromPolar", "qualified_name": "TableclothFloat.fromPolar", "type": { - "rendered": "float * TableclothFloat.radians -> float * float" + "rendered": "let fromPolar: ((float, radians)) => (float, float)" }, "info": { "deprecated": null, @@ -51456,7 +51520,7 @@ "name": "toPolar", "qualified_name": "TableclothFloat.toPolar", "type": { - "rendered": "float * float -> float * TableclothFloat.radians" + "rendered": "let toPolar: ((float, float)) => (float, radians)" }, "info": { "deprecated": null, @@ -51600,7 +51664,7 @@ "name": "cos", "qualified_name": "TableclothFloat.cos", "type": { - "rendered": "TableclothFloat.radians -> TableclothFloat.t" + "rendered": "let cos: radians => t" }, "info": { "deprecated": null, @@ -51701,7 +51765,7 @@ "name": "acos", "qualified_name": "TableclothFloat.acos", "type": { - "rendered": "TableclothFloat.radians -> TableclothFloat.t" + "rendered": "let acos: radians => t" }, "info": { "deprecated": null, @@ -51799,7 +51863,7 @@ "name": "sin", "qualified_name": "TableclothFloat.sin", "type": { - "rendered": "TableclothFloat.radians -> TableclothFloat.t" + "rendered": "let sin: radians => t" }, "info": { "deprecated": null, @@ -51900,7 +51964,7 @@ "name": "asin", "qualified_name": "TableclothFloat.asin", "type": { - "rendered": "TableclothFloat.radians -> TableclothFloat.t" + "rendered": "let asin: radians => t" }, "info": { "deprecated": null, @@ -51998,7 +52062,7 @@ "name": "tan", "qualified_name": "TableclothFloat.tan", "type": { - "rendered": "TableclothFloat.radians -> TableclothFloat.t" + "rendered": "let tan: radians => t" }, "info": { "deprecated": null, @@ -52094,7 +52158,7 @@ "name": "atan", "qualified_name": "TableclothFloat.atan", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.radians" + "rendered": "let atan: t => radians" }, "info": { "deprecated": null, @@ -52358,7 +52422,7 @@ "name": "atan2", "qualified_name": "TableclothFloat.atan2", "type": { - "rendered": "y:TableclothFloat.t -> x:TableclothFloat.t -> TableclothFloat.radians" + "rendered": "let atan2: (~y: t, ~x: t) => radians" }, "info": { "deprecated": null, @@ -52692,7 +52756,7 @@ "name": "round", "qualified_name": "TableclothFloat.round", "type": { - "rendered": "?direction:TableclothFloat.direction ->\n TableclothFloat.t -> TableclothFloat.t" + "rendered": "let round: (~direction: direction=?, t) => t" }, "info": { "deprecated": null, @@ -53261,7 +53325,7 @@ "name": "floor", "qualified_name": "TableclothFloat.floor", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t" + "rendered": "let floor: t => t" }, "info": { "deprecated": null, @@ -53343,7 +53407,7 @@ "name": "ceiling", "qualified_name": "TableclothFloat.ceiling", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t" + "rendered": "let ceiling: t => t" }, "info": { "deprecated": null, @@ -53425,7 +53489,7 @@ "name": "truncate", "qualified_name": "TableclothFloat.truncate", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t" + "rendered": "let truncate: t => t" }, "info": { "deprecated": null, @@ -53525,7 +53589,7 @@ "name": "toInt", "qualified_name": "TableclothFloat.toInt", "type": { - "rendered": "TableclothFloat.t -> int option" + "rendered": "let toInt: t => option" }, "info": { "deprecated": null, @@ -53815,7 +53879,7 @@ "name": "toString", "qualified_name": "TableclothFloat.toString", "type": { - "rendered": "TableclothFloat.t -> string" + "rendered": "let toString: t => string" }, "info": { "deprecated": null, @@ -53903,7 +53967,7 @@ "name": "equal", "qualified_name": "TableclothFloat.equal", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> bool" + "rendered": "let equal: (t, t) => bool" }, "info": { "deprecated": null, @@ -53941,7 +54005,7 @@ "name": "compare", "qualified_name": "TableclothFloat.compare", "type": { - "rendered": "TableclothFloat.t -> TableclothFloat.t -> int" + "rendered": "let compare: (t, t) => int" }, "info": { "deprecated": null, @@ -54078,7 +54142,7 @@ "name": "zero", "qualified_name": "TableclothContainer.Sum.zero", "type": { - "rendered": "TableclothContainer.Sum.t" + "rendered": "" }, "info": null, "parameters": { @@ -54094,7 +54158,7 @@ "name": "add", "qualified_name": "TableclothContainer.Sum.add", "type": { - "rendered": "TableclothContainer.Sum.t ->\n TableclothContainer.Sum.t -> TableclothContainer.Sum.t" + "rendered": "" }, "info": null, "parameters": { @@ -54242,7 +54306,7 @@ "name": "fromInt", "qualified_name": "TableclothBool.fromInt", "type": { - "rendered": "int -> bool option" + "rendered": "let fromInt: int => option" }, "info": { "deprecated": null, @@ -54389,7 +54453,7 @@ "name": "fromString", "qualified_name": "TableclothBool.fromString", "type": { - "rendered": "string -> bool option" + "rendered": "let fromString: string => option" }, "info": { "deprecated": null, @@ -54587,7 +54651,7 @@ "name": "(&&)", "qualified_name": "TableclothBool.(&&)", "type": { - "rendered": "bool -> bool -> bool" + "rendered": "" }, "info": { "deprecated": null, @@ -54734,7 +54798,7 @@ "name": "(||)", "qualified_name": "TableclothBool.(||)", "type": { - "rendered": "bool -> bool -> bool" + "rendered": "" }, "info": { "deprecated": null, @@ -54881,7 +54945,7 @@ "name": "xor", "qualified_name": "TableclothBool.xor", "type": { - "rendered": "bool -> bool -> bool" + "rendered": "let xor: (bool, bool) => bool" }, "info": { "deprecated": null, @@ -55025,7 +55089,7 @@ "name": "not", "qualified_name": "TableclothBool.not", "type": { - "rendered": "TableclothBool.t -> bool" + "rendered": "let not: t => bool" }, "info": { "deprecated": null, @@ -55136,7 +55200,7 @@ "name": "toString", "qualified_name": "TableclothBool.toString", "type": { - "rendered": "bool -> string" + "rendered": "let toString: bool => string" }, "info": { "deprecated": null, @@ -55245,7 +55309,7 @@ "name": "toInt", "qualified_name": "TableclothBool.toInt", "type": { - "rendered": "bool -> int" + "rendered": "let toInt: bool => int" }, "info": { "deprecated": null, @@ -55376,7 +55440,7 @@ "name": "equal", "qualified_name": "TableclothBool.equal", "type": { - "rendered": "bool -> bool -> bool" + "rendered": "let equal: (bool, bool) => bool" }, "info": { "deprecated": null, @@ -55480,7 +55544,7 @@ "name": "compare", "qualified_name": "TableclothBool.compare", "type": { - "rendered": "bool -> bool -> int" + "rendered": "let compare: (bool, bool) => int" }, "info": { "deprecated": null, @@ -55864,7 +55928,7 @@ "name": "compare", "qualified_name": "TableclothComparator.T.compare", "type": { - "rendered": "TableclothComparator.T.t -> TableclothComparator.T.t -> int" + "rendered": "" }, "info": null, "parameters": { @@ -56069,7 +56133,7 @@ "name": "comparator", "qualified_name": "TableclothComparator.S.comparator", "type": { - "rendered": "(TableclothComparator.S.t, TableclothComparator.S.identity)\n TableclothComparator.comparator" + "rendered": "" }, "info": null, "parameters": { From 9fd8cf8216ea677450f594c16dceb1e075fcfe93 Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Sun, 9 Jan 2022 04:50:04 +0300 Subject: [PATCH 2/8] Cleanup --- ocamldoc-json-generator/JsonGenerator.ml | 173 ++++---- website/model-rescript.json | 490 +++++++++++------------ 2 files changed, 335 insertions(+), 328 deletions(-) diff --git a/ocamldoc-json-generator/JsonGenerator.ml b/ocamldoc-json-generator/JsonGenerator.ml index 72226ef1..679dcfca 100644 --- a/ocamldoc-json-generator/JsonGenerator.ml +++ b/ocamldoc-json-generator/JsonGenerator.ml @@ -922,89 +922,89 @@ class json = Odoc_info.string_of_type_expr t |> Odoc_info.remove_ending_newline in (* - let raw = - match desc with - | Tvar tvar -> - tagged "Var" (nullable string tvar) - | Tnil -> - tagged "Nil" null - | Ttuple components -> - tagged "Tuple" (array self#json_of_type_expr components) - | Tarrow (label, from, to_, _commutable) -> - tagged - "Arrow" - (obj - [ ( "label" - , match label with - | Nolabel -> - tagged "Nolabel" null - | Labelled label -> - tagged "Labelled" (string label) - | Optional label -> - tagged "Optional" (string label) ) - ; ("from", self#json_of_type_expr from) - ; ("to", self#json_of_type_expr to_) - (* ("commutable", - match commutable with - | Cok -> tagged "Ok" null - | Cunknown -> tagged "Unknown" null - | Clink (link : Types.commutable ref) -> tagged "Link" null - ) *) - ]) - | Tconstr - ( (path : Path.t) - , (ts : Types.type_expr list) - , (_am : Types.abbrev_memo ref) ) -> - tagged - "Constr" - (obj - [ ("path", self#json_of_path path) - ; ("expressions", array self#json_of_type_expr ts) - ]) - | Tobject - ( (_expression : Types.type_expr) - , (_b : (Path.t * Types.type_expr list) option ref) ) -> - tagged "Object" (obj []) - | Tfield - ( _string - , _field_kind - , (_a : Types.type_expr) - , (_b : Types.type_expr) ) -> - tagged "Field" null - | Tlink type_expr -> - tagged "Link" (self#json_of_type_expr type_expr) - | Tsubst type_expr -> - tagged "Subst" (self#json_of_type_expr type_expr) - | Tvariant row_desc -> - tagged - "Variant" - (obj - [ ("fields", null) - ; ("more", self#json_of_type_expr row_desc.row_more) - ; ("bound", null) - ; ("closed", bool row_desc.row_closed) - ; ("fixed", bool row_desc.row_fixed) - ; ( "name" - , nullable - (fun ((_path : Path.t), expressions) -> - obj - [ ( "expressions" - , array self#json_of_type_expr expressions ) - ]) - row_desc.row_name ) + let raw = + match desc with + | Tvar tvar -> + tagged "Var" (nullable string tvar) + | Tnil -> + tagged "Nil" null + | Ttuple components -> + tagged "Tuple" (array self#json_of_type_expr components) + | Tarrow (label, from, to_, _commutable) -> + tagged + "Arrow" + (obj + [ ( "label" + , match label with + | Nolabel -> + tagged "Nolabel" null + | Labelled label -> + tagged "Labelled" (string label) + | Optional label -> + tagged "Optional" (string label) ) + ; ("from", self#json_of_type_expr from) + ; ("to", self#json_of_type_expr to_) + (* ("commutable", + match commutable with + | Cok -> tagged "Ok" null + | Cunknown -> tagged "Unknown" null + | Clink (link : Types.commutable ref) -> tagged "Link" null + ) *) + ]) + | Tconstr + ( (path : Path.t) + , (ts : Types.type_expr list) + , (_am : Types.abbrev_memo ref) ) -> + tagged + "Constr" + (obj + [ ("path", self#json_of_path path) + ; ("expressions", array self#json_of_type_expr ts) + ]) + | Tobject + ( (_expression : Types.type_expr) + , (_b : (Path.t * Types.type_expr list) option ref) ) -> + tagged "Object" (obj []) + | Tfield + ( _string + , _field_kind + , (_a : Types.type_expr) + , (_b : Types.type_expr) ) -> + tagged "Field" null + | Tlink type_expr -> + tagged "Link" (self#json_of_type_expr type_expr) + | Tsubst type_expr -> + tagged "Subst" (self#json_of_type_expr type_expr) + | Tvariant row_desc -> + tagged + "Variant" + (obj + [ ("fields", null) + ; ("more", self#json_of_type_expr row_desc.row_more) + ; ("bound", null) + ; ("closed", bool row_desc.row_closed) + ; ("fixed", bool row_desc.row_fixed) + ; ( "name" + , nullable + (fun ((_path : Path.t), expressions) -> + obj + [ ( "expressions" + , array self#json_of_type_expr expressions ) ]) - | Tunivar (univar : string option) -> - tagged "Univar" (nullable string univar) - | Tpoly ((_ex : Types.type_expr), (_expressions : Types.type_expr list)) - -> - tagged "Poly" null - | Tpackage - ( (_path : Path.t) - , (_idents : Longident.t list) - , (_expressions : Types.type_expr list) ) -> - tagged "Package" null - in - *) + row_desc.row_name ) + ]) + | Tunivar (univar : string option) -> + tagged "Univar" (nullable string univar) + | Tpoly ((_ex : Types.type_expr), (_expressions : Types.type_expr list)) + -> + tagged "Poly" null + | Tpackage + ( (_path : Path.t) + , (_idents : Longident.t list) + , (_expressions : Types.type_expr list) ) -> + tagged "Package" null + in + *) obj [ ("rendered", string rendered) (* ("raw", raw) *) ] method json_of_rescript_type_expr (moduleName : string) (funcName : string) @@ -1032,6 +1032,13 @@ class json = let r = Str.regexp ("^" ^ "let " ^ funcName) in Str.string_match r line 0 in + let trim_name line = + match String.split_on_char ':' line with + | [ _; result ] -> + result |> String.trim + | _ -> + line + in let fetch_rescript_type ~moduleName ~funcName = let filename = "./_rescript/" ^ moduleName ^ ".resi" in let result = ref [ "" ] in @@ -1054,7 +1061,7 @@ class json = | None -> () in - !result |> List.rev |> String.concat "" + !result |> List.rev |> String.concat "" |> trim_name in try let rendered = diff --git a/website/model-rescript.json b/website/model-rescript.json index 452de04f..cd9774a8 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -683,7 +683,7 @@ "name": "make", "qualified_name": "TableclothTuple3.make", "type": { - "rendered": "let make: ('a, 'b, 'c) => ('a, 'b, 'c)" + "rendered": "('a, 'b, 'c) => ('a, 'b, 'c)" }, "info": { "deprecated": null, @@ -788,7 +788,7 @@ "name": "fromArray", "qualified_name": "TableclothTuple3.fromArray", "type": { - "rendered": "let fromArray: array<'a> => option<('a, 'a, 'a)>" + "rendered": "array<'a> => option<('a, 'a, 'a)>" }, "info": { "deprecated": null, @@ -924,7 +924,7 @@ "name": "fromList", "qualified_name": "TableclothTuple3.fromList", "type": { - "rendered": "let fromList: list<'a> => option<('a, 'a, 'a)>" + "rendered": "list<'a> => option<('a, 'a, 'a)>" }, "info": { "deprecated": null, @@ -1060,7 +1060,7 @@ "name": "first", "qualified_name": "TableclothTuple3.first", "type": { - "rendered": "let first: (('a, 'b, 'c)) => 'a" + "rendered": "(('a, 'b, 'c)) => 'a" }, "info": { "deprecated": null, @@ -1145,7 +1145,7 @@ "name": "second", "qualified_name": "TableclothTuple3.second", "type": { - "rendered": "let second: (('a, 'b, 'c)) => 'b" + "rendered": "(('a, 'b, 'c)) => 'b" }, "info": { "deprecated": null, @@ -1230,7 +1230,7 @@ "name": "third", "qualified_name": "TableclothTuple3.third", "type": { - "rendered": "let third: (('a, 'b, 'c)) => 'c" + "rendered": "(('a, 'b, 'c)) => 'c" }, "info": { "deprecated": null, @@ -1315,7 +1315,7 @@ "name": "initial", "qualified_name": "TableclothTuple3.initial", "type": { - "rendered": "let initial: (('a, 'b, 'c)) => ('a, 'b)" + "rendered": "(('a, 'b, 'c)) => ('a, 'b)" }, "info": { "deprecated": null, @@ -1440,7 +1440,7 @@ "name": "tail", "qualified_name": "TableclothTuple3.tail", "type": { - "rendered": "let tail: (('a, 'b, 'c)) => ('b, 'c)" + "rendered": "(('a, 'b, 'c)) => ('b, 'c)" }, "info": { "deprecated": null, @@ -1583,7 +1583,7 @@ "name": "rotateLeft", "qualified_name": "TableclothTuple3.rotateLeft", "type": { - "rendered": "let rotateLeft: (('a, 'b, 'c)) => ('b, 'c, 'a)" + "rendered": "(('a, 'b, 'c)) => ('b, 'c, 'a)" }, "info": { "deprecated": null, @@ -1668,7 +1668,7 @@ "name": "rotateRight", "qualified_name": "TableclothTuple3.rotateRight", "type": { - "rendered": "let rotateRight: (('a, 'b, 'c)) => ('c, 'a, 'b)" + "rendered": "(('a, 'b, 'c)) => ('c, 'a, 'b)" }, "info": { "deprecated": null, @@ -2256,7 +2256,7 @@ "name": "toArray", "qualified_name": "TableclothTuple3.toArray", "type": { - "rendered": "let toArray: (('a, 'a, 'a)) => array<'a>" + "rendered": "(('a, 'a, 'a)) => array<'a>" }, "info": { "deprecated": null, @@ -2369,7 +2369,7 @@ "name": "toList", "qualified_name": "TableclothTuple3.toList", "type": { - "rendered": "let toList: (('a, 'a, 'a)) => list<'a>" + "rendered": "(('a, 'a, 'a)) => list<'a>" }, "info": { "deprecated": null, @@ -2482,7 +2482,7 @@ "name": "equal", "qualified_name": "TableclothTuple3.equal", "type": { - "rendered": "let equal: (\n ('a, 'a) => bool,\n ('b, 'b) => bool,\n ('c, 'c) => bool,\n t<'a, 'b, 'c>,\n t<'a, 'b, 'c>,\n) => bool" + "rendered": "(\n ('a, 'a) => bool,\n ('b, 'b) => bool,\n ('c, 'c) => bool,\n t<'a, 'b, 'c>,\n t<'a, 'b, 'c>,\n) => bool" }, "info": { "deprecated": null, @@ -2587,7 +2587,7 @@ "name": "compare", "qualified_name": "TableclothTuple3.compare", "type": { - "rendered": "let compare: (\n ('a, 'a) => int,\n ('b, 'b) => int,\n ('c, 'c) => int,\n t<'a, 'b, 'c>,\n t<'a, 'b, 'c>,\n) => int" + "rendered": "(\n ('a, 'a) => int,\n ('b, 'b) => int,\n ('c, 'c) => int,\n t<'a, 'b, 'c>,\n t<'a, 'b, 'c>,\n) => int" }, "info": { "deprecated": null, @@ -2777,7 +2777,7 @@ "name": "make", "qualified_name": "TableclothTuple2.make", "type": { - "rendered": "let make: ('a, 'b) => ('a, 'b)" + "rendered": "('a, 'b) => ('a, 'b)" }, "info": { "deprecated": null, @@ -2859,7 +2859,7 @@ "name": "fromArray", "qualified_name": "TableclothTuple2.fromArray", "type": { - "rendered": "let fromArray: array<'a> => option<('a, 'a)>" + "rendered": "array<'a> => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -2995,7 +2995,7 @@ "name": "fromList", "qualified_name": "TableclothTuple2.fromList", "type": { - "rendered": "let fromList: list<'a> => option<('a, 'a)>" + "rendered": "list<'a> => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -3131,7 +3131,7 @@ "name": "first", "qualified_name": "TableclothTuple2.first", "type": { - "rendered": "let first: (('a, 'b)) => 'a" + "rendered": "(('a, 'b)) => 'a" }, "info": { "deprecated": null, @@ -3216,7 +3216,7 @@ "name": "second", "qualified_name": "TableclothTuple2.second", "type": { - "rendered": "let second: (('a, 'b)) => 'b" + "rendered": "(('a, 'b)) => 'b" }, "info": { "deprecated": null, @@ -3711,7 +3711,7 @@ "name": "swap", "qualified_name": "TableclothTuple2.swap", "type": { - "rendered": "let swap: (('a, 'b)) => ('b, 'a)" + "rendered": "(('a, 'b)) => ('b, 'a)" }, "info": { "deprecated": null, @@ -3814,7 +3814,7 @@ "name": "toArray", "qualified_name": "TableclothTuple2.toArray", "type": { - "rendered": "let toArray: (('a, 'a)) => array<'a>" + "rendered": "(('a, 'a)) => array<'a>" }, "info": { "deprecated": null, @@ -3927,7 +3927,7 @@ "name": "toList", "qualified_name": "TableclothTuple2.toList", "type": { - "rendered": "let toList: (('a, 'a)) => list<'a>" + "rendered": "(('a, 'a)) => list<'a>" }, "info": { "deprecated": null, @@ -4012,7 +4012,7 @@ "name": "equal", "qualified_name": "TableclothTuple2.equal", "type": { - "rendered": "let equal: (('a, 'a) => bool, ('b, 'b) => bool, t<'a, 'b>, t<'a, 'b>) => bool" + "rendered": "(('a, 'a) => bool, ('b, 'b) => bool, t<'a, 'b>, t<'a, 'b>) => bool" }, "info": { "deprecated": null, @@ -4117,7 +4117,7 @@ "name": "compare", "qualified_name": "TableclothTuple2.compare", "type": { - "rendered": "let compare: (('a, 'a) => int, ('b, 'b) => int, t<'a, 'b>, t<'a, 'b>) => int" + "rendered": "(('a, 'a) => int, ('b, 'b) => int, t<'a, 'b>, t<'a, 'b>) => int" }, "info": { "deprecated": null, @@ -4866,7 +4866,7 @@ "name": "empty", "qualified_name": "TableclothSet.empty", "type": { - "rendered": "let empty: TableclothComparator.s<'a, 'identity> => t<'a, 'identity>" + "rendered": "TableclothComparator.s<'a, 'identity> => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -4964,7 +4964,7 @@ "name": "singleton", "qualified_name": "TableclothSet.singleton", "type": { - "rendered": "let singleton: (TableclothComparator.s<'a, 'identity>, 'a) => t<'a, 'identity>" + "rendered": "(TableclothComparator.s<'a, 'identity>, 'a) => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -5054,7 +5054,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.fromArray", "type": { - "rendered": "let fromArray: (TableclothComparator.s<'a, 'identity>, array<'a>) => t<'a, 'identity>" + "rendered": "(TableclothComparator.s<'a, 'identity>, array<'a>) => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -5144,7 +5144,7 @@ "name": "fromList", "qualified_name": "TableclothSet.fromList", "type": { - "rendered": "let fromList: (TableclothComparator.s<'a, 'identity>, list<'a>) => t<'a, 'identity>" + "rendered": "(TableclothComparator.s<'a, 'identity>, list<'a>) => t<'a, 'identity>" }, "info": { "deprecated": null, @@ -5252,7 +5252,7 @@ "name": "add", "qualified_name": "TableclothSet.add", "type": { - "rendered": "let add: (t<'a, 'id>, 'a) => t<'a, 'id>" + "rendered": "(t<'a, 'id>, 'a) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -5337,7 +5337,7 @@ "name": "remove", "qualified_name": "TableclothSet.remove", "type": { - "rendered": "let remove: (t<'a, 'id>, 'a) => t<'a, 'id>" + "rendered": "(t<'a, 'id>, 'a) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -5422,7 +5422,7 @@ "name": "includes", "qualified_name": "TableclothSet.includes", "type": { - "rendered": "let includes: (t<'a, _>, 'a) => bool" + "rendered": "(t<'a, _>, 'a) => bool" }, "info": { "deprecated": null, @@ -5623,7 +5623,7 @@ "name": "length", "qualified_name": "TableclothSet.length", "type": { - "rendered": "let length: t<_, _> => int" + "rendered": "t<_, _> => int" }, "info": { "deprecated": null, @@ -5879,7 +5879,7 @@ "name": "isEmpty", "qualified_name": "TableclothSet.isEmpty", "type": { - "rendered": "let isEmpty: t<_, _> => bool" + "rendered": "t<_, _> => bool" }, "info": { "deprecated": null, @@ -6206,7 +6206,7 @@ "name": "difference", "qualified_name": "TableclothSet.difference", "type": { - "rendered": "let difference: (t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" + "rendered": "(t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6291,7 +6291,7 @@ "name": "intersection", "qualified_name": "TableclothSet.intersection", "type": { - "rendered": "let intersection: (t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" + "rendered": "(t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6365,7 +6365,7 @@ "name": "union", "qualified_name": "TableclothSet.union", "type": { - "rendered": "let union: (t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" + "rendered": "(t<'a, 'id>, t<'a, 'id>) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6835,7 +6835,7 @@ "name": "toArray", "qualified_name": "TableclothSet.toArray", "type": { - "rendered": "let toArray: t<'a, _> => array<'a>" + "rendered": "t<'a, _> => array<'a>" }, "info": { "deprecated": null, @@ -6889,7 +6889,7 @@ "name": "toList", "qualified_name": "TableclothSet.toList", "type": { - "rendered": "let toList: t<'a, _> => list<'a>" + "rendered": "t<'a, _> => list<'a>" }, "info": { "deprecated": null, @@ -8448,7 +8448,7 @@ "name": "ok", "qualified_name": "TableclothResult.ok", "type": { - "rendered": "let ok: 'ok => t<'ok, 'error>" + "rendered": "'ok => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -8581,7 +8581,7 @@ "name": "error", "qualified_name": "TableclothResult.error", "type": { - "rendered": "let error: 'error => t<'ok, 'error>" + "rendered": "'error => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -8791,7 +8791,7 @@ "name": "attempt", "qualified_name": "TableclothResult.attempt", "type": { - "rendered": "let attempt: (unit => 'ok) => t<'ok, exn>" + "rendered": "(unit => 'ok) => t<'ok, exn>" }, "info": { "deprecated": null, @@ -9053,7 +9053,7 @@ "name": "isOk", "qualified_name": "TableclothResult.isOk", "type": { - "rendered": "let isOk: t<_, _> => bool" + "rendered": "t<_, _> => bool" }, "info": { "deprecated": null, @@ -9267,7 +9267,7 @@ "name": "isError", "qualified_name": "TableclothResult.isError", "type": { - "rendered": "let isError: t<_, _> => bool" + "rendered": "t<_, _> => bool" }, "info": { "deprecated": null, @@ -9493,7 +9493,7 @@ "name": "and_", "qualified_name": "TableclothResult.and_", "type": { - "rendered": "let and_: (t<'ok, 'error>, t<'ok, 'error>) => t<'ok, 'error>" + "rendered": "(t<'ok, 'error>, t<'ok, 'error>) => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -9664,7 +9664,7 @@ "name": "or_", "qualified_name": "TableclothResult.or_", "type": { - "rendered": "let or_: (t<'ok, 'error>, t<'ok, 'error>) => t<'ok, 'error>" + "rendered": "(t<'ok, 'error>, t<'ok, 'error>) => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -9823,7 +9823,7 @@ "name": "both", "qualified_name": "TableclothResult.both", "type": { - "rendered": "let both: (t<'a, 'error>, t<'b, 'error>) => t<('a, 'b), 'error>" + "rendered": "(t<'a, 'error>, t<'b, 'error>) => t<('a, 'b), 'error>" }, "info": { "deprecated": null, @@ -10002,7 +10002,7 @@ "name": "flatten", "qualified_name": "TableclothResult.flatten", "type": { - "rendered": "let flatten: t, 'error> => t<'ok, 'error>" + "rendered": "t, 'error> => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -10195,7 +10195,7 @@ "name": "unwrapUnsafe", "qualified_name": "TableclothResult.unwrapUnsafe", "type": { - "rendered": "let unwrapUnsafe: t<'ok, _> => 'ok" + "rendered": "t<'ok, _> => 'ok" }, "info": { "deprecated": null, @@ -10569,7 +10569,7 @@ "name": "values", "qualified_name": "TableclothResult.values", "type": { - "rendered": "let values: list> => t, 'error>" + "rendered": "list> => t, 'error>" }, "info": { "deprecated": null, @@ -10699,7 +10699,7 @@ "name": "combine", "qualified_name": "TableclothResult.combine", "type": { - "rendered": "let combine: list> => result, 'error>" + "rendered": "list> => result, 'error>" }, "info": { "deprecated": null, @@ -11335,7 +11335,7 @@ "name": "toOption", "qualified_name": "TableclothResult.toOption", "type": { - "rendered": "let toOption: t<'ok, _> => option<'ok>" + "rendered": "t<'ok, _> => option<'ok>" }, "info": { "deprecated": null, @@ -11518,7 +11518,7 @@ "name": "equal", "qualified_name": "TableclothResult.equal", "type": { - "rendered": "let equal: (('ok, 'ok) => bool, ('error, 'error) => bool, t<'ok, 'error>, t<'ok, 'error>) => bool" + "rendered": "(('ok, 'ok) => bool, ('error, 'error) => bool, t<'ok, 'error>, t<'ok, 'error>) => bool" }, "info": { "deprecated": null, @@ -11636,7 +11636,7 @@ "name": "compare", "qualified_name": "TableclothResult.compare", "type": { - "rendered": "let compare: (('ok, 'ok) => int, ('error, 'error) => int, t<'ok, 'error>, t<'ok, 'error>) => int" + "rendered": "(('ok, 'ok) => int, ('error, 'error) => int, t<'ok, 'error>, t<'ok, 'error>) => int" }, "info": { "deprecated": null, @@ -12549,7 +12549,7 @@ "name": "empty", "qualified_name": "TableclothList.empty", "type": { - "rendered": "let empty: t<'a>" + "rendered": "t<'a>" }, "info": { "deprecated": null, @@ -12634,7 +12634,7 @@ "name": "singleton", "qualified_name": "TableclothList.singleton", "type": { - "rendered": "let singleton: 'a => t<'a>" + "rendered": "'a => t<'a>" }, "info": { "deprecated": null, @@ -13072,7 +13072,7 @@ "name": "fromArray", "qualified_name": "TableclothList.fromArray", "type": { - "rendered": "let fromArray: array<'a> => t<'a>" + "rendered": "array<'a> => t<'a>" }, "info": { "deprecated": null, @@ -13184,7 +13184,7 @@ "name": "head", "qualified_name": "TableclothList.head", "type": { - "rendered": "let head: t<'a> => option<'a>" + "rendered": "t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -13301,7 +13301,7 @@ "name": "tail", "qualified_name": "TableclothList.tail", "type": { - "rendered": "let tail: t<'a> => option>" + "rendered": "t<'a> => option>" }, "info": { "deprecated": null, @@ -13429,7 +13429,7 @@ "name": "cons", "qualified_name": "TableclothList.cons", "type": { - "rendered": "let cons: (t<'a>, 'a) => t<'a>" + "rendered": "(t<'a>, 'a) => t<'a>" }, "info": { "deprecated": null, @@ -14123,7 +14123,7 @@ "name": "last", "qualified_name": "TableclothList.last", "type": { - "rendered": "let last: t<'a> => option<'a>" + "rendered": "t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -14805,7 +14805,7 @@ "name": "reverse", "qualified_name": "TableclothList.reverse", "type": { - "rendered": "let reverse: t<'a> => t<'a>" + "rendered": "t<'a> => t<'a>" }, "info": { "deprecated": null, @@ -15068,7 +15068,7 @@ "name": "isEmpty", "qualified_name": "TableclothList.isEmpty", "type": { - "rendered": "let isEmpty: t<_> => bool" + "rendered": "t<_> => bool" }, "info": { "deprecated": null, @@ -15164,7 +15164,7 @@ "name": "length", "qualified_name": "TableclothList.length", "type": { - "rendered": "let length: t<'a> => int" + "rendered": "t<'a> => int" }, "info": { "deprecated": null, @@ -16741,7 +16741,7 @@ "name": "sum", "qualified_name": "TableclothList.sum", "type": { - "rendered": "let sum: (t<'a>, module(TableclothContainer.Sum with type t = 'a)) => 'a" + "rendered": "(t<'a>, module(TableclothContainer.Sum with type t = 'a)) => 'a" }, "info": { "deprecated": null, @@ -17887,7 +17887,7 @@ "name": "append", "qualified_name": "TableclothList.append", "type": { - "rendered": "let append: (t<'a>, t<'a>) => t<'a>" + "rendered": "(t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -17961,7 +17961,7 @@ "name": "flatten", "qualified_name": "TableclothList.flatten", "type": { - "rendered": "let flatten: t> => t<'a>" + "rendered": "t> => t<'a>" }, "info": { "deprecated": null, @@ -18035,7 +18035,7 @@ "name": "zip", "qualified_name": "TableclothList.zip", "type": { - "rendered": "let zip: (t<'a>, t<'b>) => t<('a, 'b)>" + "rendered": "(t<'a>, t<'b>) => t<('a, 'b)>" }, "info": { "deprecated": null, @@ -18801,7 +18801,7 @@ "name": "unzip", "qualified_name": "TableclothList.unzip", "type": { - "rendered": "let unzip: t<('a, 'b)> => (t<'a>, t<'b>)" + "rendered": "t<('a, 'b)> => (t<'a>, t<'b>)" }, "info": { "deprecated": null, @@ -19917,7 +19917,7 @@ "name": "toArray", "qualified_name": "TableclothList.toArray", "type": { - "rendered": "let toArray: t<'a> => array<'a>" + "rendered": "t<'a> => array<'a>" }, "info": { "deprecated": null, @@ -19993,7 +19993,7 @@ "name": "equal", "qualified_name": "TableclothList.equal", "type": { - "rendered": "let equal: (('a, 'a) => bool, t<'a>, t<'a>) => bool" + "rendered": "(('a, 'a) => bool, t<'a>, t<'a>) => bool" }, "info": { "deprecated": null, @@ -20031,7 +20031,7 @@ "name": "compare", "qualified_name": "TableclothList.compare", "type": { - "rendered": "let compare: (('a, 'a) => int, t<'a>, t<'a>) => int" + "rendered": "(('a, 'a) => int, t<'a>, t<'a>) => int" }, "info": { "deprecated": null, @@ -20329,7 +20329,7 @@ "name": "singleton", "qualified_name": "TableclothArray.singleton", "type": { - "rendered": "let singleton: 'a => t<'a>" + "rendered": "'a => t<'a>" }, "info": { "deprecated": null, @@ -20759,7 +20759,7 @@ "name": "fromList", "qualified_name": "TableclothArray.fromList", "type": { - "rendered": "let fromList: list<'a> => t<'a>" + "rendered": "list<'a> => t<'a>" }, "info": { "deprecated": null, @@ -20853,7 +20853,7 @@ "name": "clone", "qualified_name": "TableclothArray.clone", "type": { - "rendered": "let clone: t<'a> => t<'a>" + "rendered": "t<'a> => t<'a>" }, "info": { "deprecated": null, @@ -20956,7 +20956,7 @@ "name": "get", "qualified_name": "TableclothArray.get", "type": { - "rendered": "let get: (t<'a>, int) => 'a" + "rendered": "(t<'a>, int) => 'a" }, "info": { "deprecated": null, @@ -21468,7 +21468,7 @@ "name": "set", "qualified_name": "TableclothArray.set", "type": { - "rendered": "let set: (t<'a>, int, 'a) => unit" + "rendered": "(t<'a>, int, 'a) => unit" }, "info": { "deprecated": null, @@ -21728,7 +21728,7 @@ "name": "first", "qualified_name": "TableclothArray.first", "type": { - "rendered": "let first: t<'a> => option<'a>" + "rendered": "t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -21840,7 +21840,7 @@ "name": "last", "qualified_name": "TableclothArray.last", "type": { - "rendered": "let last: t<'a> => option<'a>" + "rendered": "t<'a> => option<'a>" }, "info": { "deprecated": null, @@ -22145,7 +22145,7 @@ "name": "swap", "qualified_name": "TableclothArray.swap", "type": { - "rendered": "let swap: (t<'a>, int, int) => unit" + "rendered": "(t<'a>, int, int) => unit" }, "info": { "deprecated": null, @@ -22256,7 +22256,7 @@ "name": "reverse", "qualified_name": "TableclothArray.reverse", "type": { - "rendered": "let reverse: t<'a> => unit" + "rendered": "t<'a> => unit" }, "info": { "deprecated": null, @@ -22483,7 +22483,7 @@ "name": "isEmpty", "qualified_name": "TableclothArray.isEmpty", "type": { - "rendered": "let isEmpty: t<'a> => bool" + "rendered": "t<'a> => bool" }, "info": { "deprecated": null, @@ -22568,7 +22568,7 @@ "name": "length", "qualified_name": "TableclothArray.length", "type": { - "rendered": "let length: t<'a> => int" + "rendered": "t<'a> => int" }, "info": { "deprecated": null, @@ -23749,7 +23749,7 @@ "name": "sum", "qualified_name": "TableclothArray.sum", "type": { - "rendered": "let sum: (t<'a>, module(TableclothContainer.Sum with type t = 'a)) => 'a" + "rendered": "(t<'a>, module(TableclothContainer.Sum with type t = 'a)) => 'a" }, "info": { "deprecated": null, @@ -24975,7 +24975,7 @@ "name": "append", "qualified_name": "TableclothArray.append", "type": { - "rendered": "let append: (t<'a>, t<'a>) => t<'a>" + "rendered": "(t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -25049,7 +25049,7 @@ "name": "flatten", "qualified_name": "TableclothArray.flatten", "type": { - "rendered": "let flatten: t> => t<'a>" + "rendered": "t> => t<'a>" }, "info": { "deprecated": null, @@ -25123,7 +25123,7 @@ "name": "zip", "qualified_name": "TableclothArray.zip", "type": { - "rendered": "let zip: (t<'a>, t<'b>) => t<('a, 'b)>" + "rendered": "(t<'a>, t<'b>) => t<('a, 'b)>" }, "info": { "deprecated": null, @@ -25921,7 +25921,7 @@ "name": "unzip", "qualified_name": "TableclothArray.unzip", "type": { - "rendered": "let unzip: t<('a, 'b)> => (t<'a>, t<'b>)" + "rendered": "t<('a, 'b)> => (t<'a>, t<'b>)" }, "info": { "deprecated": null, @@ -26217,7 +26217,7 @@ "name": "values", "qualified_name": "TableclothArray.values", "type": { - "rendered": "let values: t> => t<'a>" + "rendered": "t> => t<'a>" }, "info": { "deprecated": null, @@ -26909,7 +26909,7 @@ "name": "toList", "qualified_name": "TableclothArray.toList", "type": { - "rendered": "let toList: t<'a> => list<'a>" + "rendered": "t<'a> => list<'a>" }, "info": { "deprecated": null, @@ -27014,7 +27014,7 @@ "name": "toIndexedList", "qualified_name": "TableclothArray.toIndexedList", "type": { - "rendered": "let toIndexedList: t<'a> => list<(int, 'a)>" + "rendered": "t<'a> => list<(int, 'a)>" }, "info": { "deprecated": null, @@ -27128,7 +27128,7 @@ "name": "equal", "qualified_name": "TableclothArray.equal", "type": { - "rendered": "let equal: (('a, 'a) => bool, t<'a>, t<'a>) => bool" + "rendered": "(('a, 'a) => bool, t<'a>, t<'a>) => bool" }, "info": { "deprecated": null, @@ -27166,7 +27166,7 @@ "name": "compare", "qualified_name": "TableclothArray.compare", "type": { - "rendered": "let compare: (('a, 'a) => int, t<'a>, t<'a>) => int" + "rendered": "(('a, 'a) => int, t<'a>, t<'a>) => int" }, "info": { "deprecated": null, @@ -27887,7 +27887,7 @@ "name": "empty", "qualified_name": "TableclothMap.empty", "type": { - "rendered": "let empty: TableclothComparator.s<'key, 'identity> => t<'key, 'value, 'identity>" + "rendered": "TableclothComparator.s<'key, 'identity> => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -28083,7 +28083,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.fromArray", "type": { - "rendered": "let fromArray: (\n TableclothComparator.s<'key, 'identity>,\n array<('key, 'value)>,\n) => t<'key, 'value, 'identity>" + "rendered": "(\n TableclothComparator.s<'key, 'identity>,\n array<('key, 'value)>,\n) => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -28141,7 +28141,7 @@ "name": "fromList", "qualified_name": "TableclothMap.fromList", "type": { - "rendered": "let fromList: (\n TableclothComparator.s<'key, 'identity>,\n list<('key, 'value)>,\n) => t<'key, 'value, 'identity>" + "rendered": "(\n TableclothComparator.s<'key, 'identity>,\n list<('key, 'value)>,\n) => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -28445,7 +28445,7 @@ "name": "remove", "qualified_name": "TableclothMap.remove", "type": { - "rendered": "let remove: (t<'key, 'value, 'id>, 'key) => t<'key, 'value, 'id>" + "rendered": "(t<'key, 'value, 'id>, 'key) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -28515,7 +28515,7 @@ "name": "get", "qualified_name": "TableclothMap.get", "type": { - "rendered": "let get: (t<'key, 'value, 'id>, 'key) => option<'value>" + "rendered": "(t<'key, 'value, 'id>, 'key) => option<'value>" }, "info": { "deprecated": null, @@ -28849,7 +28849,7 @@ "name": "isEmpty", "qualified_name": "TableclothMap.isEmpty", "type": { - "rendered": "let isEmpty: t<_, _, _> => bool" + "rendered": "t<_, _, _> => bool" }, "info": { "deprecated": null, @@ -28887,7 +28887,7 @@ "name": "length", "qualified_name": "TableclothMap.length", "type": { - "rendered": "let length: t<_, _, _> => int" + "rendered": "t<_, _, _> => int" }, "info": { "deprecated": null, @@ -29244,7 +29244,7 @@ "name": "includes", "qualified_name": "TableclothMap.includes", "type": { - "rendered": "let includes: (t<'key, _, _>, 'key) => bool" + "rendered": "(t<'key, _, _>, 'key) => bool" }, "info": { "deprecated": null, @@ -29290,7 +29290,7 @@ "name": "minimum", "qualified_name": "TableclothMap.minimum", "type": { - "rendered": "let minimum: t<'key, _, _> => option<'key>" + "rendered": "t<'key, _, _> => option<'key>" }, "info": { "deprecated": null, @@ -29413,7 +29413,7 @@ "name": "maximum", "qualified_name": "TableclothMap.maximum", "type": { - "rendered": "let maximum: t<'key, _, _> => option<'key>" + "rendered": "t<'key, _, _> => option<'key>" }, "info": { "deprecated": null, @@ -29516,7 +29516,7 @@ "name": "extent", "qualified_name": "TableclothMap.extent", "type": { - "rendered": "let extent: t<'key, _, _> => option<('key, 'key)>" + "rendered": "t<'key, _, _> => option<('key, 'key)>" }, "info": { "deprecated": null, @@ -30384,7 +30384,7 @@ "name": "keys", "qualified_name": "TableclothMap.keys", "type": { - "rendered": "let keys: t<'key, _, _> => list<'key>" + "rendered": "t<'key, _, _> => list<'key>" }, "info": { "deprecated": null, @@ -30478,7 +30478,7 @@ "name": "values", "qualified_name": "TableclothMap.values", "type": { - "rendered": "let values: t<_, 'value, _> => list<'value>" + "rendered": "t<_, 'value, _> => list<'value>" }, "info": { "deprecated": null, @@ -30572,7 +30572,7 @@ "name": "toArray", "qualified_name": "TableclothMap.toArray", "type": { - "rendered": "let toArray: t<'key, 'value, _> => array<('key, 'value)>" + "rendered": "t<'key, 'value, _> => array<('key, 'value)>" }, "info": { "deprecated": null, @@ -30630,7 +30630,7 @@ "name": "toList", "qualified_name": "TableclothMap.toList", "type": { - "rendered": "let toList: t<'key, 'value, _> => list<('key, 'value)>" + "rendered": "t<'key, 'value, _> => list<('key, 'value)>" }, "info": { "deprecated": null, @@ -32028,7 +32028,7 @@ "name": "some", "qualified_name": "TableclothOption.some", "type": { - "rendered": "let some: 'a => option<'a>" + "rendered": "'a => option<'a>" }, "info": { "deprecated": null, @@ -32187,7 +32187,7 @@ "name": "and_", "qualified_name": "TableclothOption.and_", "type": { - "rendered": "let and_: (t<'a>, t<'a>) => t<'a>" + "rendered": "(t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -32350,7 +32350,7 @@ "name": "or_", "qualified_name": "TableclothOption.or_", "type": { - "rendered": "let or_: (t<'a>, t<'a>) => t<'a>" + "rendered": "(t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -32509,7 +32509,7 @@ "name": "orElse", "qualified_name": "TableclothOption.orElse", "type": { - "rendered": "let orElse: (t<'a>, t<'a>) => t<'a>" + "rendered": "(t<'a>, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -32672,7 +32672,7 @@ "name": "both", "qualified_name": "TableclothOption.both", "type": { - "rendered": "let both: (t<'a>, t<'b>) => t<('a, 'b)>" + "rendered": "(t<'a>, t<'b>) => t<('a, 'b)>" }, "info": { "deprecated": null, @@ -32807,7 +32807,7 @@ "name": "flatten", "qualified_name": "TableclothOption.flatten", "type": { - "rendered": "let flatten: t> => t<'a>" + "rendered": "t> => t<'a>" }, "info": { "deprecated": null, @@ -33722,7 +33722,7 @@ "name": "unwrapUnsafe", "qualified_name": "TableclothOption.unwrapUnsafe", "type": { - "rendered": "let unwrapUnsafe: t<'a> => 'a" + "rendered": "t<'a> => 'a" }, "info": { "deprecated": null, @@ -33945,7 +33945,7 @@ "name": "isSome", "qualified_name": "TableclothOption.isSome", "type": { - "rendered": "let isSome: t<'a> => bool" + "rendered": "t<'a> => bool" }, "info": { "deprecated": null, @@ -34066,7 +34066,7 @@ "name": "isNone", "qualified_name": "TableclothOption.isNone", "type": { - "rendered": "let isNone: t<'a> => bool" + "rendered": "t<'a> => bool" }, "info": { "deprecated": null, @@ -34225,7 +34225,7 @@ "name": "toArray", "qualified_name": "TableclothOption.toArray", "type": { - "rendered": "let toArray: t<'a> => array<'a>" + "rendered": "t<'a> => array<'a>" }, "info": { "deprecated": null, @@ -34354,7 +34354,7 @@ "name": "toList", "qualified_name": "TableclothOption.toList", "type": { - "rendered": "let toList: t<'a> => list<'a>" + "rendered": "t<'a> => list<'a>" }, "info": { "deprecated": null, @@ -34501,7 +34501,7 @@ "name": "equal", "qualified_name": "TableclothOption.equal", "type": { - "rendered": "let equal: (('a, 'a) => bool, t<'a>, t<'a>) => bool" + "rendered": "(('a, 'a) => bool, t<'a>, t<'a>) => bool" }, "info": { "deprecated": null, @@ -34608,7 +34608,7 @@ "name": "compare", "qualified_name": "TableclothOption.compare", "type": { - "rendered": "let compare: (('a, 'a) => int, t<'a>, t<'a>) => int" + "rendered": "(('a, 'a) => int, t<'a>, t<'a>) => int" }, "info": { "deprecated": null, @@ -35182,7 +35182,7 @@ "name": "fromChar", "qualified_name": "TableclothString.fromChar", "type": { - "rendered": "let fromChar: char => string" + "rendered": "char => string" }, "info": { "deprecated": null, @@ -35220,7 +35220,7 @@ "name": "fromArray", "qualified_name": "TableclothString.fromArray", "type": { - "rendered": "let fromArray: array => string" + "rendered": "array => string" }, "info": { "deprecated": null, @@ -35333,7 +35333,7 @@ "name": "fromList", "qualified_name": "TableclothString.fromList", "type": { - "rendered": "let fromList: list => string" + "rendered": "list => string" }, "info": { "deprecated": null, @@ -35703,7 +35703,7 @@ "name": "get", "qualified_name": "TableclothString.get", "type": { - "rendered": "let get: (string, int) => char" + "rendered": "(string, int) => char" }, "info": { "deprecated": null, @@ -35921,7 +35921,7 @@ "name": "reverse", "qualified_name": "TableclothString.reverse", "type": { - "rendered": "let reverse: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -36100,7 +36100,7 @@ "name": "isEmpty", "qualified_name": "TableclothString.isEmpty", "type": { - "rendered": "let isEmpty: string => bool" + "rendered": "string => bool" }, "info": { "deprecated": null, @@ -36138,7 +36138,7 @@ "name": "length", "qualified_name": "TableclothString.length", "type": { - "rendered": "let length: string => int" + "rendered": "string => int" }, "info": { "deprecated": null, @@ -36519,7 +36519,7 @@ "name": "isCapitalized", "qualified_name": "TableclothString.isCapitalized", "type": { - "rendered": "let isCapitalized: string => bool" + "rendered": "string => bool" }, "info": { "deprecated": null, @@ -36877,7 +36877,7 @@ "name": "indexOf", "qualified_name": "TableclothString.indexOf", "type": { - "rendered": "let indexOf: (string, string) => option" + "rendered": "(string, string) => option" }, "info": { "deprecated": null, @@ -36974,7 +36974,7 @@ "name": "indexOfRight", "qualified_name": "TableclothString.indexOfRight", "type": { - "rendered": "let indexOfRight: (string, string) => option" + "rendered": "(string, string) => option" }, "info": { "deprecated": null, @@ -37216,7 +37216,7 @@ "name": "toLowercase", "qualified_name": "TableclothString.toLowercase", "type": { - "rendered": "let toLowercase: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -37311,7 +37311,7 @@ "name": "toUppercase", "qualified_name": "TableclothString.toUppercase", "type": { - "rendered": "let toUppercase: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -37406,7 +37406,7 @@ "name": "uncapitalize", "qualified_name": "TableclothString.uncapitalize", "type": { - "rendered": "let uncapitalize: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -37501,7 +37501,7 @@ "name": "capitalize", "qualified_name": "TableclothString.capitalize", "type": { - "rendered": "let capitalize: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -37604,7 +37604,7 @@ "name": "trim", "qualified_name": "TableclothString.trim", "type": { - "rendered": "let trim: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -37720,7 +37720,7 @@ "name": "trimLeft", "qualified_name": "TableclothString.trimLeft", "type": { - "rendered": "let trimLeft: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -37778,7 +37778,7 @@ "name": "trimRight", "qualified_name": "TableclothString.trimRight", "type": { - "rendered": "let trimRight: string => string" + "rendered": "string => string" }, "info": { "deprecated": null, @@ -38016,7 +38016,7 @@ "name": "uncons", "qualified_name": "TableclothString.uncons", "type": { - "rendered": "let uncons: string => option<(char, string)>" + "rendered": "string => option<(char, string)>" }, "info": { "deprecated": null, @@ -38410,7 +38410,7 @@ "name": "toArray", "qualified_name": "TableclothString.toArray", "type": { - "rendered": "let toArray: string => array" + "rendered": "string => array" }, "info": { "deprecated": null, @@ -38515,7 +38515,7 @@ "name": "toList", "qualified_name": "TableclothString.toList", "type": { - "rendered": "let toList: string => list" + "rendered": "string => list" }, "info": { "deprecated": null, @@ -38638,7 +38638,7 @@ "name": "equal", "qualified_name": "TableclothString.equal", "type": { - "rendered": "let equal: (string, string) => bool" + "rendered": "(string, string) => bool" }, "info": { "deprecated": null, @@ -38676,7 +38676,7 @@ "name": "compare", "qualified_name": "TableclothString.compare", "type": { - "rendered": "let compare: (string, string) => int" + "rendered": "(string, string) => int" }, "info": { "deprecated": null, @@ -38891,7 +38891,7 @@ "name": "comparator", "qualified_name": "TableclothString.comparator", "type": { - "rendered": "let comparator: TableclothComparator.t" + "rendered": "TableclothComparator.t" }, "info": null, "parameters": { @@ -39084,7 +39084,7 @@ "name": "fromCode", "qualified_name": "TableclothChar.fromCode", "type": { - "rendered": "let fromCode: int => option" + "rendered": "int => option" }, "info": { "deprecated": null, @@ -39255,7 +39255,7 @@ "name": "fromString", "qualified_name": "TableclothChar.fromString", "type": { - "rendered": "let fromString: string => option" + "rendered": "string => option" }, "info": { "deprecated": null, @@ -39373,7 +39373,7 @@ "name": "isLowercase", "qualified_name": "TableclothChar.isLowercase", "type": { - "rendered": "let isLowercase: char => bool" + "rendered": "char => bool" }, "info": { "deprecated": null, @@ -39502,7 +39502,7 @@ "name": "isUppercase", "qualified_name": "TableclothChar.isUppercase", "type": { - "rendered": "let isUppercase: char => bool" + "rendered": "char => bool" }, "info": { "deprecated": null, @@ -39631,7 +39631,7 @@ "name": "isLetter", "qualified_name": "TableclothChar.isLetter", "type": { - "rendered": "let isLetter: char => bool" + "rendered": "char => bool" }, "info": { "deprecated": null, @@ -39760,7 +39760,7 @@ "name": "isDigit", "qualified_name": "TableclothChar.isDigit", "type": { - "rendered": "let isDigit: char => bool" + "rendered": "char => bool" }, "info": { "deprecated": null, @@ -39878,7 +39878,7 @@ "name": "isAlphanumeric", "qualified_name": "TableclothChar.isAlphanumeric", "type": { - "rendered": "let isAlphanumeric: char => bool" + "rendered": "char => bool" }, "info": { "deprecated": null, @@ -40018,7 +40018,7 @@ "name": "isPrintable", "qualified_name": "TableclothChar.isPrintable", "type": { - "rendered": "let isPrintable: char => bool" + "rendered": "char => bool" }, "info": { "deprecated": null, @@ -40196,7 +40196,7 @@ "name": "isWhitespace", "qualified_name": "TableclothChar.isWhitespace", "type": { - "rendered": "let isWhitespace: char => bool" + "rendered": "char => bool" }, "info": { "deprecated": null, @@ -40364,7 +40364,7 @@ "name": "toLowercase", "qualified_name": "TableclothChar.toLowercase", "type": { - "rendered": "let toLowercase: char => char" + "rendered": "char => char" }, "info": { "deprecated": null, @@ -40460,7 +40460,7 @@ "name": "toUppercase", "qualified_name": "TableclothChar.toUppercase", "type": { - "rendered": "let toUppercase: char => char" + "rendered": "char => char" }, "info": { "deprecated": null, @@ -40556,7 +40556,7 @@ "name": "toCode", "qualified_name": "TableclothChar.toCode", "type": { - "rendered": "let toCode: char => int" + "rendered": "char => int" }, "info": { "deprecated": null, @@ -40669,7 +40669,7 @@ "name": "toString", "qualified_name": "TableclothChar.toString", "type": { - "rendered": "let toString: char => string" + "rendered": "char => string" }, "info": { "deprecated": null, @@ -40765,7 +40765,7 @@ "name": "toDigit", "qualified_name": "TableclothChar.toDigit", "type": { - "rendered": "let toDigit: char => option" + "rendered": "char => option" }, "info": { "deprecated": null, @@ -40908,7 +40908,7 @@ "name": "equal", "qualified_name": "TableclothChar.equal", "type": { - "rendered": "let equal: (t, t) => bool" + "rendered": "(t, t) => bool" }, "info": { "deprecated": null, @@ -40966,7 +40966,7 @@ "name": "compare", "qualified_name": "TableclothChar.compare", "type": { - "rendered": "let compare: (t, t) => int" + "rendered": "(t, t) => int" }, "info": { "deprecated": null, @@ -41116,7 +41116,7 @@ "name": "comparator", "qualified_name": "TableclothChar.comparator", "type": { - "rendered": "let comparator: TableclothComparator.t" + "rendered": "TableclothComparator.t" }, "info": null, "parameters": { @@ -41607,7 +41607,7 @@ "name": "zero", "qualified_name": "TableclothInt.zero", "type": { - "rendered": "let zero: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -41653,7 +41653,7 @@ "name": "one", "qualified_name": "TableclothInt.one", "type": { - "rendered": "let one: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -41699,7 +41699,7 @@ "name": "maximumValue", "qualified_name": "TableclothInt.maximumValue", "type": { - "rendered": "let maximumValue: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -41745,7 +41745,7 @@ "name": "minimumValue", "qualified_name": "TableclothInt.minimumValue", "type": { - "rendered": "let minimumValue: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -41809,7 +41809,7 @@ "name": "fromString", "qualified_name": "TableclothInt.fromString", "type": { - "rendered": "let fromString: string => option" + "rendered": "string => option" }, "info": { "deprecated": null, @@ -42159,7 +42159,7 @@ "name": "add", "qualified_name": "TableclothInt.add", "type": { - "rendered": "let add: (t, t) => t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -42374,7 +42374,7 @@ "name": "subtract", "qualified_name": "TableclothInt.subtract", "type": { - "rendered": "let subtract: (t, t) => t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -42504,7 +42504,7 @@ "name": "multiply", "qualified_name": "TableclothInt.multiply", "type": { - "rendered": "let multiply: (t, t) => t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -43089,7 +43089,7 @@ "name": "negate", "qualified_name": "TableclothInt.negate", "type": { - "rendered": "let negate: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -43270,7 +43270,7 @@ "name": "absolute", "qualified_name": "TableclothInt.absolute", "type": { - "rendered": "let absolute: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -43816,7 +43816,7 @@ "name": "maximum", "qualified_name": "TableclothInt.maximum", "type": { - "rendered": "let maximumValue: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -43909,7 +43909,7 @@ "name": "minimum", "qualified_name": "TableclothInt.minimum", "type": { - "rendered": "let minimumValue: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -44020,7 +44020,7 @@ "name": "isEven", "qualified_name": "TableclothInt.isEven", "type": { - "rendered": "let isEven: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -44124,7 +44124,7 @@ "name": "isOdd", "qualified_name": "TableclothInt.isOdd", "type": { - "rendered": "let isOdd: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -44568,7 +44568,7 @@ "name": "toFloat", "qualified_name": "TableclothInt.toFloat", "type": { - "rendered": "let toFloat: t => float" + "rendered": "t => float" }, "info": { "deprecated": null, @@ -44682,7 +44682,7 @@ "name": "toString", "qualified_name": "TableclothInt.toString", "type": { - "rendered": "let toString: t => string" + "rendered": "t => string" }, "info": { "deprecated": null, @@ -44835,7 +44835,7 @@ "name": "equal", "qualified_name": "TableclothInt.equal", "type": { - "rendered": "let equal: (t, t) => bool" + "rendered": "(t, t) => bool" }, "info": { "deprecated": null, @@ -44881,7 +44881,7 @@ "name": "compare", "qualified_name": "TableclothInt.compare", "type": { - "rendered": "let compare: (t, t) => int" + "rendered": "(t, t) => int" }, "info": { "deprecated": null, @@ -45019,7 +45019,7 @@ "name": "comparator", "qualified_name": "TableclothInt.comparator", "type": { - "rendered": "let comparator: TableclothComparator.t" + "rendered": "TableclothComparator.t" }, "info": null, "parameters": { @@ -45284,7 +45284,7 @@ "name": "constant", "qualified_name": "TableclothFun.constant", "type": { - "rendered": "let constant: ('a, 'b) => 'a" + "rendered": "('a, 'b) => 'a" }, "info": { "deprecated": null, @@ -45426,7 +45426,7 @@ "name": "sequence", "qualified_name": "TableclothFun.sequence", "type": { - "rendered": "let sequence: ('a, 'b) => 'b" + "rendered": "('a, 'b) => 'b" }, "info": { "deprecated": null, @@ -45464,7 +45464,7 @@ "name": "flip", "qualified_name": "TableclothFun.flip", "type": { - "rendered": "let flip: (('a, 'b) => 'c, 'b, 'a) => 'c" + "rendered": "(('a, 'b) => 'c, 'b, 'a) => 'c" }, "info": { "deprecated": null, @@ -45558,7 +45558,7 @@ "name": "negate", "qualified_name": "TableclothFun.negate", "type": { - "rendered": "let negate: ('a => bool, 'a) => bool" + "rendered": "('a => bool, 'a) => bool" }, "info": { "deprecated": null, @@ -45716,7 +45716,7 @@ "name": "apply", "qualified_name": "TableclothFun.apply", "type": { - "rendered": "let apply: ('a => 'b, 'a) => 'b" + "rendered": "('a => 'b, 'a) => 'b" }, "info": { "deprecated": null, @@ -46062,7 +46062,7 @@ "name": "compose", "qualified_name": "TableclothFun.compose", "type": { - "rendered": "let compose: ('b => 'c, 'a => 'b, 'a) => 'c" + "rendered": "('b => 'c, 'a => 'b, 'a) => 'c" }, "info": { "deprecated": null, @@ -46223,7 +46223,7 @@ "name": "composeRight", "qualified_name": "TableclothFun.composeRight", "type": { - "rendered": "let composeRight: ('a => 'b, 'b => 'c, 'a) => 'c" + "rendered": "('a => 'b, 'b => 'c, 'a) => 'c" }, "info": { "deprecated": null, @@ -46451,7 +46451,7 @@ "name": "forever", "qualified_name": "TableclothFun.forever", "type": { - "rendered": "let forever: (unit => unit) => exn" + "rendered": "(unit => unit) => exn" }, "info": { "deprecated": null, @@ -46571,7 +46571,7 @@ "name": "curry", "qualified_name": "TableclothFun.curry", "type": { - "rendered": "let curry: ((('a, 'b)) => 'c, 'a, 'b) => 'c" + "rendered": "((('a, 'b)) => 'c, 'a, 'b) => 'c" }, "info": { "deprecated": null, @@ -46661,7 +46661,7 @@ "name": "uncurry", "qualified_name": "TableclothFun.uncurry", "type": { - "rendered": "let uncurry: (('a, 'b) => 'c, ('a, 'b)) => 'c" + "rendered": "(('a, 'b) => 'c, ('a, 'b)) => 'c" }, "info": { "deprecated": null, @@ -46735,7 +46735,7 @@ "name": "curry3", "qualified_name": "TableclothFun.curry3", "type": { - "rendered": "let curry3: ((('a, 'b, 'c)) => 'd, 'a, 'b, 'c) => 'd" + "rendered": "((('a, 'b, 'c)) => 'd, 'a, 'b, 'c) => 'd" }, "info": { "deprecated": null, @@ -46809,7 +46809,7 @@ "name": "uncurry3", "qualified_name": "TableclothFun.uncurry3", "type": { - "rendered": "let uncurry3: (('a, 'b, 'c) => 'd, ('a, 'b, 'c)) => 'd" + "rendered": "(('a, 'b, 'c) => 'd, ('a, 'b, 'c)) => 'd" }, "info": { "deprecated": null, @@ -47095,7 +47095,7 @@ "name": "zero", "qualified_name": "TableclothFloat.zero", "type": { - "rendered": "let zero: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47141,7 +47141,7 @@ "name": "one", "qualified_name": "TableclothFloat.one", "type": { - "rendered": "let one: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47187,7 +47187,7 @@ "name": "nan", "qualified_name": "TableclothFloat.nan", "type": { - "rendered": "let nan: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47370,7 +47370,7 @@ "name": "infinity", "qualified_name": "TableclothFloat.infinity", "type": { - "rendered": "let infinity: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47435,7 +47435,7 @@ "name": "negativeInfinity", "qualified_name": "TableclothFloat.negativeInfinity", "type": { - "rendered": "let negativeInfinity: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47489,7 +47489,7 @@ "name": "e", "qualified_name": "TableclothFloat.e", "type": { - "rendered": "let e: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47543,7 +47543,7 @@ "name": "pi", "qualified_name": "TableclothFloat.pi", "type": { - "rendered": "let pi: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47597,7 +47597,7 @@ "name": "epsilon", "qualified_name": "TableclothFloat.epsilon", "type": { - "rendered": "let epsilon: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47635,7 +47635,7 @@ "name": "largestValue", "qualified_name": "TableclothFloat.largestValue", "type": { - "rendered": "let largestValue: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47677,7 +47677,7 @@ "name": "smallestValue", "qualified_name": "TableclothFloat.smallestValue", "type": { - "rendered": "let smallestValue: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47723,7 +47723,7 @@ "name": "maximumSafeInteger", "qualified_name": "TableclothFloat.maximumSafeInteger", "type": { - "rendered": "let maximumSafeInteger: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47773,7 +47773,7 @@ "name": "minimumSafeInteger", "qualified_name": "TableclothFloat.minimumSafeInteger", "type": { - "rendered": "let minimumSafeInteger: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -47841,7 +47841,7 @@ "name": "fromInt", "qualified_name": "TableclothFloat.fromInt", "type": { - "rendered": "let fromInt: int => t" + "rendered": "int => t" }, "info": { "deprecated": null, @@ -47939,7 +47939,7 @@ "name": "fromString", "qualified_name": "TableclothFloat.fromString", "type": { - "rendered": "let fromString: string => option" + "rendered": "string => option" }, "info": { "deprecated": null, @@ -48138,7 +48138,7 @@ "name": "add", "qualified_name": "TableclothFloat.add", "type": { - "rendered": "let add: (t, t) => t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -48453,7 +48453,7 @@ "name": "subtract", "qualified_name": "TableclothFloat.subtract", "type": { - "rendered": "let subtract: (t, t) => t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -48608,7 +48608,7 @@ "name": "multiply", "qualified_name": "TableclothFloat.multiply", "type": { - "rendered": "let multiply: (t, t) => t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -49073,7 +49073,7 @@ "name": "negate", "qualified_name": "TableclothFloat.negate", "type": { - "rendered": "let negate: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -49228,7 +49228,7 @@ "name": "absolute", "qualified_name": "TableclothFloat.absolute", "type": { - "rendered": "let absolute: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -49318,7 +49318,7 @@ "name": "maximum", "qualified_name": "TableclothFloat.maximum", "type": { - "rendered": "let maximumSafeInteger: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -49442,7 +49442,7 @@ "name": "minimum", "qualified_name": "TableclothFloat.minimum", "type": { - "rendered": "let minimumSafeInteger: t" + "rendered": "t" }, "info": { "deprecated": null, @@ -49745,7 +49745,7 @@ "name": "squareRoot", "qualified_name": "TableclothFloat.squareRoot", "type": { - "rendered": "let squareRoot: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -49977,7 +49977,7 @@ "name": "isNaN", "qualified_name": "TableclothFloat.isNaN", "type": { - "rendered": "let isNaN: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -50149,7 +50149,7 @@ "name": "isFinite", "qualified_name": "TableclothFloat.isFinite", "type": { - "rendered": "let isFinite: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -50303,7 +50303,7 @@ "name": "isInfinite", "qualified_name": "TableclothFloat.isInfinite", "type": { - "rendered": "let isInfinite: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -50421,7 +50421,7 @@ "name": "isInteger", "qualified_name": "TableclothFloat.isInteger", "type": { - "rendered": "let isInteger: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -50506,7 +50506,7 @@ "name": "isSafeInteger", "qualified_name": "TableclothFloat.isSafeInteger", "type": { - "rendered": "let isSafeInteger: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -50894,7 +50894,7 @@ "name": "hypotenuse", "qualified_name": "TableclothFloat.hypotenuse", "type": { - "rendered": "let hypotenuse: (t, t) => t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -51004,7 +51004,7 @@ "name": "degrees", "qualified_name": "TableclothFloat.degrees", "type": { - "rendered": "let degrees: t => radians" + "rendered": "t => radians" }, "info": { "deprecated": null, @@ -51136,7 +51136,7 @@ "name": "radians", "qualified_name": "TableclothFloat.radians", "type": { - "rendered": "let radians: t => radians" + "rendered": "t => radians" }, "info": { "deprecated": null, @@ -51267,7 +51267,7 @@ "name": "turns", "qualified_name": "TableclothFloat.turns", "type": { - "rendered": "let turns: t => radians" + "rendered": "t => radians" }, "info": { "deprecated": null, @@ -51414,7 +51414,7 @@ "name": "fromPolar", "qualified_name": "TableclothFloat.fromPolar", "type": { - "rendered": "let fromPolar: ((float, radians)) => (float, float)" + "rendered": "((float, radians)) => (float, float)" }, "info": { "deprecated": null, @@ -51520,7 +51520,7 @@ "name": "toPolar", "qualified_name": "TableclothFloat.toPolar", "type": { - "rendered": "let toPolar: ((float, float)) => (float, radians)" + "rendered": "((float, float)) => (float, radians)" }, "info": { "deprecated": null, @@ -51664,7 +51664,7 @@ "name": "cos", "qualified_name": "TableclothFloat.cos", "type": { - "rendered": "let cos: radians => t" + "rendered": "radians => t" }, "info": { "deprecated": null, @@ -51765,7 +51765,7 @@ "name": "acos", "qualified_name": "TableclothFloat.acos", "type": { - "rendered": "let acos: radians => t" + "rendered": "radians => t" }, "info": { "deprecated": null, @@ -51863,7 +51863,7 @@ "name": "sin", "qualified_name": "TableclothFloat.sin", "type": { - "rendered": "let sin: radians => t" + "rendered": "radians => t" }, "info": { "deprecated": null, @@ -51964,7 +51964,7 @@ "name": "asin", "qualified_name": "TableclothFloat.asin", "type": { - "rendered": "let asin: radians => t" + "rendered": "radians => t" }, "info": { "deprecated": null, @@ -52062,7 +52062,7 @@ "name": "tan", "qualified_name": "TableclothFloat.tan", "type": { - "rendered": "let tan: radians => t" + "rendered": "radians => t" }, "info": { "deprecated": null, @@ -52158,7 +52158,7 @@ "name": "atan", "qualified_name": "TableclothFloat.atan", "type": { - "rendered": "let atan: t => radians" + "rendered": "t => radians" }, "info": { "deprecated": null, @@ -53325,7 +53325,7 @@ "name": "floor", "qualified_name": "TableclothFloat.floor", "type": { - "rendered": "let floor: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -53407,7 +53407,7 @@ "name": "ceiling", "qualified_name": "TableclothFloat.ceiling", "type": { - "rendered": "let ceiling: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -53489,7 +53489,7 @@ "name": "truncate", "qualified_name": "TableclothFloat.truncate", "type": { - "rendered": "let truncate: t => t" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -53589,7 +53589,7 @@ "name": "toInt", "qualified_name": "TableclothFloat.toInt", "type": { - "rendered": "let toInt: t => option" + "rendered": "t => option" }, "info": { "deprecated": null, @@ -53879,7 +53879,7 @@ "name": "toString", "qualified_name": "TableclothFloat.toString", "type": { - "rendered": "let toString: t => string" + "rendered": "t => string" }, "info": { "deprecated": null, @@ -53967,7 +53967,7 @@ "name": "equal", "qualified_name": "TableclothFloat.equal", "type": { - "rendered": "let equal: (t, t) => bool" + "rendered": "(t, t) => bool" }, "info": { "deprecated": null, @@ -54005,7 +54005,7 @@ "name": "compare", "qualified_name": "TableclothFloat.compare", "type": { - "rendered": "let compare: (t, t) => int" + "rendered": "(t, t) => int" }, "info": { "deprecated": null, @@ -54306,7 +54306,7 @@ "name": "fromInt", "qualified_name": "TableclothBool.fromInt", "type": { - "rendered": "let fromInt: int => option" + "rendered": "int => option" }, "info": { "deprecated": null, @@ -54453,7 +54453,7 @@ "name": "fromString", "qualified_name": "TableclothBool.fromString", "type": { - "rendered": "let fromString: string => option" + "rendered": "string => option" }, "info": { "deprecated": null, @@ -54945,7 +54945,7 @@ "name": "xor", "qualified_name": "TableclothBool.xor", "type": { - "rendered": "let xor: (bool, bool) => bool" + "rendered": "(bool, bool) => bool" }, "info": { "deprecated": null, @@ -55089,7 +55089,7 @@ "name": "not", "qualified_name": "TableclothBool.not", "type": { - "rendered": "let not: t => bool" + "rendered": "t => bool" }, "info": { "deprecated": null, @@ -55200,7 +55200,7 @@ "name": "toString", "qualified_name": "TableclothBool.toString", "type": { - "rendered": "let toString: bool => string" + "rendered": "bool => string" }, "info": { "deprecated": null, @@ -55309,7 +55309,7 @@ "name": "toInt", "qualified_name": "TableclothBool.toInt", "type": { - "rendered": "let toInt: bool => int" + "rendered": "bool => int" }, "info": { "deprecated": null, @@ -55440,7 +55440,7 @@ "name": "equal", "qualified_name": "TableclothBool.equal", "type": { - "rendered": "let equal: (bool, bool) => bool" + "rendered": "(bool, bool) => bool" }, "info": { "deprecated": null, @@ -55544,7 +55544,7 @@ "name": "compare", "qualified_name": "TableclothBool.compare", "type": { - "rendered": "let compare: (bool, bool) => int" + "rendered": "(bool, bool) => int" }, "info": { "deprecated": null, From 2751a2a9a7ad852069236c124bbf3063d3aa72f9 Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Sun, 9 Jan 2022 05:10:42 +0300 Subject: [PATCH 3/8] Handle trim with named args --- ocamldoc-json-generator/JsonGenerator.ml | 4 +- website/model-rescript.json | 310 +++++++++++------------ 2 files changed, 157 insertions(+), 157 deletions(-) diff --git a/ocamldoc-json-generator/JsonGenerator.ml b/ocamldoc-json-generator/JsonGenerator.ml index 679dcfca..193aac43 100644 --- a/ocamldoc-json-generator/JsonGenerator.ml +++ b/ocamldoc-json-generator/JsonGenerator.ml @@ -1034,8 +1034,8 @@ class json = in let trim_name line = match String.split_on_char ':' line with - | [ _; result ] -> - result |> String.trim + | _ :: result -> + result |> String.concat ":" |> String.trim | _ -> line in diff --git a/website/model-rescript.json b/website/model-rescript.json index cd9774a8..b88406bb 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -1753,7 +1753,7 @@ "name": "mapFirst", "qualified_name": "TableclothTuple3.mapFirst", "type": { - "rendered": "let mapFirst: (('a, 'b, 'c), ~f: 'a => 'x) => ('x, 'b, 'c)" + "rendered": "(('a, 'b, 'c), ~f: 'a => 'x) => ('x, 'b, 'c)" }, "info": { "deprecated": null, @@ -1838,7 +1838,7 @@ "name": "mapSecond", "qualified_name": "TableclothTuple3.mapSecond", "type": { - "rendered": "let mapSecond: (('a, 'b, 'c), ~f: 'b => 'y) => ('a, 'y, 'c)" + "rendered": "(('a, 'b, 'c), ~f: 'b => 'y) => ('a, 'y, 'c)" }, "info": { "deprecated": null, @@ -1923,7 +1923,7 @@ "name": "mapThird", "qualified_name": "TableclothTuple3.mapThird", "type": { - "rendered": "let mapThird: (('a, 'b, 'c), ~f: 'c => 'z) => ('a, 'b, 'z)" + "rendered": "(('a, 'b, 'c), ~f: 'c => 'z) => ('a, 'b, 'z)" }, "info": { "deprecated": null, @@ -1997,7 +1997,7 @@ "name": "mapEach", "qualified_name": "TableclothTuple3.mapEach", "type": { - "rendered": "let mapEach: (('a, 'b, 'c), ~f: 'a => 'x, ~g: 'b => 'y, ~h: 'c => 'z) => ('x, 'y, 'z)" + "rendered": "(('a, 'b, 'c), ~f: 'a => 'x, ~g: 'b => 'y, ~h: 'c => 'z) => ('x, 'y, 'z)" }, "info": { "deprecated": null, @@ -2155,7 +2155,7 @@ "name": "mapAll", "qualified_name": "TableclothTuple3.mapAll", "type": { - "rendered": "let mapAll: (('a, 'a, 'a), ~f: 'a => 'b) => ('b, 'b, 'b)" + "rendered": "(('a, 'a, 'a), ~f: 'a => 'b) => ('b, 'b, 'b)" }, "info": { "deprecated": null, @@ -3319,7 +3319,7 @@ "name": "mapFirst", "qualified_name": "TableclothTuple2.mapFirst", "type": { - "rendered": "let mapFirst: (('a, 'b), ~f: 'a => 'x) => ('x, 'b)" + "rendered": "(('a, 'b), ~f: 'a => 'x) => ('x, 'b)" }, "info": { "deprecated": null, @@ -3424,7 +3424,7 @@ "name": "mapSecond", "qualified_name": "TableclothTuple2.mapSecond", "type": { - "rendered": "let mapSecond: (('a, 'b), ~f: 'b => 'c) => ('a, 'c)" + "rendered": "(('a, 'b), ~f: 'b => 'c) => ('a, 'c)" }, "info": { "deprecated": null, @@ -3509,7 +3509,7 @@ "name": "mapEach", "qualified_name": "TableclothTuple2.mapEach", "type": { - "rendered": "let mapEach: (('a, 'b), ~f: 'a => 'x, ~g: 'b => 'y) => ('x, 'y)" + "rendered": "(('a, 'b), ~f: 'a => 'x, ~g: 'b => 'y) => ('x, 'y)" }, "info": { "deprecated": null, @@ -3610,7 +3610,7 @@ "name": "mapAll", "qualified_name": "TableclothTuple2.mapAll", "type": { - "rendered": "let mapAll: (('a, 'a), ~f: 'a => 'b) => ('b, 'b)" + "rendered": "(('a, 'a), ~f: 'a => 'b) => ('b, 'b)" }, "info": { "deprecated": null, @@ -5697,7 +5697,7 @@ "name": "find", "qualified_name": "TableclothSet.find", "type": { - "rendered": "let find: (t<'value, _>, ~f: 'value => bool) => option<'value>" + "rendered": "(t<'value, _>, ~f: 'value => bool) => option<'value>" }, "info": { "deprecated": null, @@ -5964,7 +5964,7 @@ "name": "any", "qualified_name": "TableclothSet.any", "type": { - "rendered": "let any: (t<'value, _>, ~f: 'value => bool) => bool" + "rendered": "(t<'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -6076,7 +6076,7 @@ "name": "all", "qualified_name": "TableclothSet.all", "type": { - "rendered": "let all: (t<'value, _>, ~f: 'value => bool) => bool" + "rendered": "(t<'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -6457,7 +6457,7 @@ "name": "filter", "qualified_name": "TableclothSet.filter", "type": { - "rendered": "let filter: (t<'a, 'id>, ~f: 'a => bool) => t<'a, 'id>" + "rendered": "(t<'a, 'id>, ~f: 'a => bool) => t<'a, 'id>" }, "info": { "deprecated": null, @@ -6547,7 +6547,7 @@ "name": "partition", "qualified_name": "TableclothSet.partition", "type": { - "rendered": "let partition: (t<'a, 'id>, ~f: 'a => bool) => (t<'a, 'id>, t<'a, 'id>)" + "rendered": "(t<'a, 'id>, ~f: 'a => bool) => (t<'a, 'id>, t<'a, 'id>)" }, "info": { "deprecated": null, @@ -6661,7 +6661,7 @@ "name": "fold", "qualified_name": "TableclothSet.fold", "type": { - "rendered": "let fold: (t<'a, _>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" + "rendered": "(t<'a, _>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -6771,7 +6771,7 @@ "name": "forEach", "qualified_name": "TableclothSet.forEach", "type": { - "rendered": "let forEach: (t<'a, _>, ~f: 'a => unit) => unit" + "rendered": "(t<'a, _>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -8896,7 +8896,7 @@ "name": "fromOption", "qualified_name": "TableclothResult.fromOption", "type": { - "rendered": "let fromOption: (option<'ok>, ~error: 'error) => t<'ok, 'error>" + "rendered": "(option<'ok>, ~error: 'error) => t<'ok, 'error>" }, "info": { "deprecated": null, @@ -10098,7 +10098,7 @@ "name": "unwrap", "qualified_name": "TableclothResult.unwrap", "type": { - "rendered": "let unwrap: (t<'ok, 'error>, ~default: 'ok) => 'ok" + "rendered": "(t<'ok, 'error>, ~default: 'ok) => 'ok" }, "info": { "deprecated": null, @@ -10317,7 +10317,7 @@ "name": "unwrapError", "qualified_name": "TableclothResult.unwrapError", "type": { - "rendered": "let unwrapError: (t<'ok, 'error>, ~default: 'error) => 'error" + "rendered": "(t<'ok, 'error>, ~default: 'error) => 'error" }, "info": { "deprecated": null, @@ -10430,7 +10430,7 @@ "name": "map2", "qualified_name": "TableclothResult.map2", "type": { - "rendered": "let map2: (t<'a, 'error>, t<'b, 'error>, ~f: ('a, 'b) => 'c) => t<'c, 'error>" + "rendered": "(t<'a, 'error>, t<'b, 'error>, ~f: ('a, 'b) => 'c) => t<'c, 'error>" }, "info": { "deprecated": null, @@ -10828,7 +10828,7 @@ "name": "map", "qualified_name": "TableclothResult.map", "type": { - "rendered": "let map2: (t<'a, 'error>, t<'b, 'error>, ~f: ('a, 'b) => 'c) => t<'c, 'error>" + "rendered": "(t<'a, 'error>, t<'b, 'error>, ~f: ('a, 'b) => 'c) => t<'c, 'error>" }, "info": { "deprecated": null, @@ -10937,7 +10937,7 @@ "name": "mapError", "qualified_name": "TableclothResult.mapError", "type": { - "rendered": "let mapError: (t<'ok, 'a>, ~f: 'a => 'b) => t<'ok, 'b>" + "rendered": "(t<'ok, 'a>, ~f: 'a => 'b) => t<'ok, 'b>" }, "info": { "deprecated": null, @@ -11046,7 +11046,7 @@ "name": "andThen", "qualified_name": "TableclothResult.andThen", "type": { - "rendered": "let andThen: (t<'a, 'error>, ~f: 'a => t<'b, 'error>) => t<'b, 'error>" + "rendered": "(t<'a, 'error>, ~f: 'a => t<'b, 'error>) => t<'b, 'error>" }, "info": { "deprecated": null, @@ -11227,7 +11227,7 @@ "name": "tap", "qualified_name": "TableclothResult.tap", "type": { - "rendered": "let tap: (t<'ok, _>, ~f: 'ok => unit) => unit" + "rendered": "(t<'ok, _>, ~f: 'ok => unit) => unit" }, "info": { "deprecated": null, @@ -12719,7 +12719,7 @@ "name": "repeat", "qualified_name": "TableclothList.repeat", "type": { - "rendered": "let repeat: ('a, ~times: int) => t<'a>" + "rendered": "('a, ~times: int) => t<'a>" }, "info": { "deprecated": null, @@ -12831,7 +12831,7 @@ "name": "range", "qualified_name": "TableclothList.range", "type": { - "rendered": "let range: (~from: int=?, int) => t" + "rendered": "(~from: int=?, int) => t" }, "info": { "deprecated": null, @@ -12947,7 +12947,7 @@ "name": "initialize", "qualified_name": "TableclothList.initialize", "type": { - "rendered": "let initialize: (int, ~f: int => 'a) => t<'a>" + "rendered": "(int, ~f: int => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -13530,7 +13530,7 @@ "name": "take", "qualified_name": "TableclothList.take", "type": { - "rendered": "let take: (t<'a>, ~count: int) => t<'a>" + "rendered": "(t<'a>, ~count: int) => t<'a>" }, "info": { "deprecated": null, @@ -13669,7 +13669,7 @@ "name": "takeWhile", "qualified_name": "TableclothList.takeWhile", "type": { - "rendered": "let takeWhile: (t<'a>, ~f: 'a => bool) => t<'a>" + "rendered": "(t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -13755,7 +13755,7 @@ "name": "drop", "qualified_name": "TableclothList.drop", "type": { - "rendered": "let drop: (t<'a>, ~count: int) => t<'a>" + "rendered": "(t<'a>, ~count: int) => t<'a>" }, "info": { "deprecated": null, @@ -13883,7 +13883,7 @@ "name": "dropWhile", "qualified_name": "TableclothList.dropWhile", "type": { - "rendered": "let dropWhile: (t<'a>, ~f: 'a => bool) => t<'a>" + "rendered": "(t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -13991,7 +13991,7 @@ "name": "initial", "qualified_name": "TableclothList.initial", "type": { - "rendered": "let initialize: (int, ~f: int => 'a) => t<'a>" + "rendered": "(int, ~f: int => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -14256,7 +14256,7 @@ "name": "getAt", "qualified_name": "TableclothList.getAt", "type": { - "rendered": "let getAt: (t<'a>, ~index: int) => option<'a>" + "rendered": "(t<'a>, ~index: int) => option<'a>" }, "info": { "deprecated": null, @@ -14384,7 +14384,7 @@ "name": "insertAt", "qualified_name": "TableclothList.insertAt", "type": { - "rendered": "let insertAt: (t<'a>, ~index: int, ~value: 'a) => t<'a>" + "rendered": "(t<'a>, ~index: int, ~value: 'a) => t<'a>" }, "info": { "deprecated": null, @@ -14579,7 +14579,7 @@ "name": "updateAt", "qualified_name": "TableclothList.updateAt", "type": { - "rendered": "let updateAt: (t<'a>, ~index: int, ~f: 'a => 'a) => t<'a>" + "rendered": "(t<'a>, ~index: int, ~f: 'a => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -14696,7 +14696,7 @@ "name": "removeAt", "qualified_name": "TableclothList.removeAt", "type": { - "rendered": "let removeAt: (t<'a>, ~index: int) => t<'a>" + "rendered": "(t<'a>, ~index: int) => t<'a>" }, "info": { "deprecated": null, @@ -14879,7 +14879,7 @@ "name": "sort", "qualified_name": "TableclothList.sort", "type": { - "rendered": "let sort: (t<'a>, ~compare: ('a, 'a) => int) => t<'a>" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => t<'a>" }, "info": { "deprecated": null, @@ -14993,7 +14993,7 @@ "name": "sortBy", "qualified_name": "TableclothList.sortBy", "type": { - "rendered": "let sortBy: (~f: 'a => 'b, t<'a>) => t<'a>" + "rendered": "(~f: 'a => 'b, t<'a>) => t<'a>" }, "info": { "deprecated": null, @@ -15388,7 +15388,7 @@ "name": "any", "qualified_name": "TableclothList.any", "type": { - "rendered": "let any: (t<'a>, ~f: 'a => bool) => bool" + "rendered": "(t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -15516,7 +15516,7 @@ "name": "all", "qualified_name": "TableclothList.all", "type": { - "rendered": "let all: (t<'a>, ~f: 'a => bool) => bool" + "rendered": "(t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -15644,7 +15644,7 @@ "name": "count", "qualified_name": "TableclothList.count", "type": { - "rendered": "let count: (t<'a>, ~f: 'a => bool) => int" + "rendered": "(t<'a>, ~f: 'a => bool) => int" }, "info": { "deprecated": null, @@ -15734,7 +15734,7 @@ "name": "uniqueBy", "qualified_name": "TableclothList.uniqueBy", "type": { - "rendered": "let uniqueBy: (~f: 'a => string, list<'a>) => list<'a>" + "rendered": "(~f: 'a => string, list<'a>) => list<'a>" }, "info": { "deprecated": null, @@ -15815,7 +15815,7 @@ "name": "find", "qualified_name": "TableclothList.find", "type": { - "rendered": "let find: (t<'a>, ~f: 'a => bool) => option<'a>" + "rendered": "(t<'a>, ~f: 'a => bool) => option<'a>" }, "info": { "deprecated": null, @@ -15955,7 +15955,7 @@ "name": "findIndex", "qualified_name": "TableclothList.findIndex", "type": { - "rendered": "let findIndex: (t<'a>, ~f: (int, 'a) => bool) => option<(int, 'a)>" + "rendered": "(t<'a>, ~f: (int, 'a) => bool) => option<(int, 'a)>" }, "info": { "deprecated": null, @@ -16077,7 +16077,7 @@ "name": "includes", "qualified_name": "TableclothList.includes", "type": { - "rendered": "let includes: (t<'a>, 'a, ~equal: ('a, 'a) => bool) => bool" + "rendered": "(t<'a>, 'a, ~equal: ('a, 'a) => bool) => bool" }, "info": { "deprecated": null, @@ -16209,7 +16209,7 @@ "name": "minimumBy", "qualified_name": "TableclothList.minimumBy", "type": { - "rendered": "let minimumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" + "rendered": "(~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16314,7 +16314,7 @@ "name": "maximumBy", "qualified_name": "TableclothList.maximumBy", "type": { - "rendered": "let maximumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" + "rendered": "(~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16419,7 +16419,7 @@ "name": "minimum", "qualified_name": "TableclothList.minimum", "type": { - "rendered": "let minimumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" + "rendered": "(~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16517,7 +16517,7 @@ "name": "maximum", "qualified_name": "TableclothList.maximum", "type": { - "rendered": "let maximumBy: (~f: 'a => 'comparable, list<'a>) => option<'a>" + "rendered": "(~f: 'a => 'comparable, list<'a>) => option<'a>" }, "info": { "deprecated": null, @@ -16615,7 +16615,7 @@ "name": "extent", "qualified_name": "TableclothList.extent", "type": { - "rendered": "let extent: (t<'a>, ~compare: ('a, 'a) => int) => option<('a, 'a)>" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -16871,7 +16871,7 @@ "name": "map", "qualified_name": "TableclothList.map", "type": { - "rendered": "let map: (t<'a>, ~f: 'a => 'b) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -16953,7 +16953,7 @@ "name": "mapWithIndex", "qualified_name": "TableclothList.mapWithIndex", "type": { - "rendered": "let mapWithIndex: (t<'a>, ~f: (int, 'a) => 'b) => t<'b>" + "rendered": "(t<'a>, ~f: (int, 'a) => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -17035,7 +17035,7 @@ "name": "filter", "qualified_name": "TableclothList.filter", "type": { - "rendered": "let filter: (t<'a>, ~f: 'a => bool) => t<'a>" + "rendered": "(t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -17125,7 +17125,7 @@ "name": "filterWithIndex", "qualified_name": "TableclothList.filterWithIndex", "type": { - "rendered": "let filterWithIndex: (t<'a>, ~f: (int, 'a) => bool) => t<'a>" + "rendered": "(t<'a>, ~f: (int, 'a) => bool) => t<'a>" }, "info": { "deprecated": null, @@ -17191,7 +17191,7 @@ "name": "filterMap", "qualified_name": "TableclothList.filterMap", "type": { - "rendered": "let filterMap: (t<'a>, ~f: 'a => option<'b>) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => option<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -17472,7 +17472,7 @@ "name": "flatMap", "qualified_name": "TableclothList.flatMap", "type": { - "rendered": "let flatMap: (t<'a>, ~f: 'a => t<'b>) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => t<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -17585,7 +17585,7 @@ "name": "fold", "qualified_name": "TableclothList.fold", "type": { - "rendered": "let fold: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" + "rendered": "(t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -17811,7 +17811,7 @@ "name": "foldRight", "qualified_name": "TableclothList.foldRight", "type": { - "rendered": "let foldRight: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" + "rendered": "(t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -18145,7 +18145,7 @@ "name": "map2", "qualified_name": "TableclothList.map2", "type": { - "rendered": "let map2: (t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" + "rendered": "(t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" }, "info": { "deprecated": null, @@ -18246,7 +18246,7 @@ "name": "map3", "qualified_name": "TableclothList.map3", "type": { - "rendered": "let map3: (t<'a>, t<'b>, t<'c>, ~f: ('a, 'b, 'c) => 'd) => t<'d>" + "rendered": "(t<'a>, t<'b>, t<'c>, ~f: ('a, 'b, 'c) => 'd) => t<'d>" }, "info": { "deprecated": null, @@ -18354,7 +18354,7 @@ "name": "partition", "qualified_name": "TableclothList.partition", "type": { - "rendered": "let partition: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" + "rendered": "(t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -18476,7 +18476,7 @@ "name": "splitAt", "qualified_name": "TableclothList.splitAt", "type": { - "rendered": "let splitAt: (t<'a>, ~index: int) => (t<'a>, t<'a>)" + "rendered": "(t<'a>, ~index: int) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -18656,7 +18656,7 @@ "name": "splitWhen", "qualified_name": "TableclothList.splitWhen", "type": { - "rendered": "let splitWhen: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" + "rendered": "(t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -18933,7 +18933,7 @@ "name": "forEach", "qualified_name": "TableclothList.forEach", "type": { - "rendered": "let forEach: (t<'a>, ~f: 'a => unit) => unit" + "rendered": "(t<'a>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -19063,7 +19063,7 @@ "name": "forEachWithIndex", "qualified_name": "TableclothList.forEachWithIndex", "type": { - "rendered": "let forEachWithIndex: (t<'a>, ~f: (int, 'a) => unit) => unit" + "rendered": "(t<'a>, ~f: (int, 'a) => unit) => unit" }, "info": { "deprecated": null, @@ -19165,7 +19165,7 @@ "name": "intersperse", "qualified_name": "TableclothList.intersperse", "type": { - "rendered": "let intersperse: (t<'a>, ~sep: 'a) => t<'a>" + "rendered": "(t<'a>, ~sep: 'a) => t<'a>" }, "info": { "deprecated": null, @@ -19258,7 +19258,7 @@ "name": "chunksOf", "qualified_name": "TableclothList.chunksOf", "type": { - "rendered": "let chunksOf: (t<'a>, ~size: int) => t>" + "rendered": "(t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -19340,7 +19340,7 @@ "name": "sliding", "qualified_name": "TableclothList.sliding", "type": { - "rendered": "let sliding: (~step: int=?, t<'a>, ~size: int) => t>" + "rendered": "(~step: int=?, t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -19536,7 +19536,7 @@ "name": "groupWhile", "qualified_name": "TableclothList.groupWhile", "type": { - "rendered": "let groupWhile: (t<'a>, ~f: ('a, 'a) => bool) => t>" + "rendered": "(t<'a>, ~f: ('a, 'a) => bool) => t>" }, "info": { "deprecated": null, @@ -19693,7 +19693,7 @@ "name": "join", "qualified_name": "TableclothList.join", "type": { - "rendered": "let join: (t, ~sep: string) => string" + "rendered": "(t, ~sep: string) => string" }, "info": { "deprecated": null, @@ -19795,7 +19795,7 @@ "name": "groupBy", "qualified_name": "TableclothList.groupBy", "type": { - "rendered": "let groupBy: (\n t<'value>,\n TableclothComparator.s<'key, 'id>,\n ~f: 'value => 'key,\n) => TableclothMap.t<'key, list<'value>, 'id>" + "rendered": "(\n t<'value>,\n TableclothComparator.s<'key, 'id>,\n ~f: 'value => 'key,\n) => TableclothMap.t<'key, list<'value>, 'id>" }, "info": { "deprecated": null, @@ -20414,7 +20414,7 @@ "name": "repeat", "qualified_name": "TableclothArray.repeat", "type": { - "rendered": "let repeat: ('a, ~length: int) => t<'a>" + "rendered": "('a, ~length: int) => t<'a>" }, "info": { "deprecated": null, @@ -20526,7 +20526,7 @@ "name": "range", "qualified_name": "TableclothArray.range", "type": { - "rendered": "let range: (~from: int=?, int) => t" + "rendered": "(~from: int=?, int) => t" }, "info": { "deprecated": null, @@ -20642,7 +20642,7 @@ "name": "initialize", "qualified_name": "TableclothArray.initialize", "type": { - "rendered": "let initialize: (int, ~f: int => 'a) => t<'a>" + "rendered": "(int, ~f: int => 'a) => t<'a>" }, "info": { "deprecated": null, @@ -21169,7 +21169,7 @@ "name": "getAt", "qualified_name": "TableclothArray.getAt", "type": { - "rendered": "let getAt: (t<'a>, ~index: int) => option<'a>" + "rendered": "(t<'a>, ~index: int) => option<'a>" }, "info": { "deprecated": null, @@ -21670,7 +21670,7 @@ "name": "setAt", "qualified_name": "TableclothArray.setAt", "type": { - "rendered": "let setAt: (t<'a>, ~index: int, ~value: 'a) => unit" + "rendered": "(t<'a>, ~index: int, ~value: 'a) => unit" }, "info": { "deprecated": null, @@ -21952,7 +21952,7 @@ "name": "slice", "qualified_name": "TableclothArray.slice", "type": { - "rendered": "let slice: (~to_: int=?, t<'a>, ~from: int) => t<'a>" + "rendered": "(~to_: int=?, t<'a>, ~from: int) => t<'a>" }, "info": { "deprecated": null, @@ -22343,7 +22343,7 @@ "name": "sort", "qualified_name": "TableclothArray.sort", "type": { - "rendered": "let sort: (t<'a>, ~compare: ('a, 'a) => int) => unit" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => unit" }, "info": { "deprecated": null, @@ -22653,7 +22653,7 @@ "name": "any", "qualified_name": "TableclothArray.any", "type": { - "rendered": "let any: (t<'a>, ~f: 'a => bool) => bool" + "rendered": "(t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -22785,7 +22785,7 @@ "name": "all", "qualified_name": "TableclothArray.all", "type": { - "rendered": "let all: (t<'a>, ~f: 'a => bool) => bool" + "rendered": "(t<'a>, ~f: 'a => bool) => bool" }, "info": { "deprecated": null, @@ -22917,7 +22917,7 @@ "name": "count", "qualified_name": "TableclothArray.count", "type": { - "rendered": "let count: (t<'a>, ~f: 'a => bool) => int" + "rendered": "(t<'a>, ~f: 'a => bool) => int" }, "info": { "deprecated": null, @@ -23007,7 +23007,7 @@ "name": "find", "qualified_name": "TableclothArray.find", "type": { - "rendered": "let find: (t<'a>, ~f: 'a => bool) => option<'a>" + "rendered": "(t<'a>, ~f: 'a => bool) => option<'a>" }, "info": { "deprecated": null, @@ -23175,7 +23175,7 @@ "name": "findIndex", "qualified_name": "TableclothArray.findIndex", "type": { - "rendered": "let findIndex: (t<'a>, ~f: (int, 'a) => bool) => option<(int, 'a)>" + "rendered": "(t<'a>, ~f: (int, 'a) => bool) => option<(int, 'a)>" }, "info": { "deprecated": null, @@ -23277,7 +23277,7 @@ "name": "includes", "qualified_name": "TableclothArray.includes", "type": { - "rendered": "let includes: (t<'a>, 'a, ~equal: ('a, 'a) => bool) => bool" + "rendered": "(t<'a>, 'a, ~equal: ('a, 'a) => bool) => bool" }, "info": { "deprecated": null, @@ -23359,7 +23359,7 @@ "name": "minimum", "qualified_name": "TableclothArray.minimum", "type": { - "rendered": "let minimum: (t<'a>, ~compare: ('a, 'a) => int) => option<'a>" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => option<'a>" }, "info": { "deprecated": null, @@ -23468,7 +23468,7 @@ "name": "maximum", "qualified_name": "TableclothArray.maximum", "type": { - "rendered": "let maximum: (t<'a>, ~compare: ('a, 'a) => int) => option<'a>" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => option<'a>" }, "info": { "deprecated": null, @@ -23577,7 +23577,7 @@ "name": "extent", "qualified_name": "TableclothArray.extent", "type": { - "rendered": "let extent: (t<'a>, ~compare: ('a, 'a) => int) => option<('a, 'a)>" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => option<('a, 'a)>" }, "info": { "deprecated": null, @@ -23879,7 +23879,7 @@ "name": "map", "qualified_name": "TableclothArray.map", "type": { - "rendered": "let map: (t<'a>, ~f: 'a => 'b) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -23961,7 +23961,7 @@ "name": "mapWithIndex", "qualified_name": "TableclothArray.mapWithIndex", "type": { - "rendered": "let mapWithIndex: (t<'a>, ~f: (int, 'a) => 'b) => t<'b>" + "rendered": "(t<'a>, ~f: (int, 'a) => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -24043,7 +24043,7 @@ "name": "filter", "qualified_name": "TableclothArray.filter", "type": { - "rendered": "let filter: (t<'a>, ~f: 'a => bool) => t<'a>" + "rendered": "(t<'a>, ~f: 'a => bool) => t<'a>" }, "info": { "deprecated": null, @@ -24133,7 +24133,7 @@ "name": "filterMap", "qualified_name": "TableclothArray.filterMap", "type": { - "rendered": "let filterMap: (t<'a>, ~f: 'a => option<'b>) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => option<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -24430,7 +24430,7 @@ "name": "flatMap", "qualified_name": "TableclothArray.flatMap", "type": { - "rendered": "let flatMap: (t<'a>, ~f: 'a => t<'b>) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => t<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -24548,7 +24548,7 @@ "name": "fold", "qualified_name": "TableclothArray.fold", "type": { - "rendered": "let fold: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" + "rendered": "(t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -24870,7 +24870,7 @@ "name": "foldRight", "qualified_name": "TableclothArray.foldRight", "type": { - "rendered": "let foldRight: (t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" + "rendered": "(t<'a>, ~initial: 'b, ~f: ('b, 'a) => 'b) => 'b" }, "info": { "deprecated": null, @@ -25233,7 +25233,7 @@ "name": "map2", "qualified_name": "TableclothArray.map2", "type": { - "rendered": "let map2: (t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" + "rendered": "(t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" }, "info": { "deprecated": null, @@ -25334,7 +25334,7 @@ "name": "map3", "qualified_name": "TableclothArray.map3", "type": { - "rendered": "let map3: (t<'a>, t<'b>, t<'c>, ~f: ('a, 'b, 'c) => 'd) => t<'d>" + "rendered": "(t<'a>, t<'b>, t<'c>, ~f: ('a, 'b, 'c) => 'd) => t<'d>" }, "info": { "deprecated": null, @@ -25442,7 +25442,7 @@ "name": "partition", "qualified_name": "TableclothArray.partition", "type": { - "rendered": "let partition: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" + "rendered": "(t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -25564,7 +25564,7 @@ "name": "splitAt", "qualified_name": "TableclothArray.splitAt", "type": { - "rendered": "let splitAt: (t<'a>, ~index: int) => (t<'a>, t<'a>)" + "rendered": "(t<'a>, ~index: int) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -25757,7 +25757,7 @@ "name": "splitWhen", "qualified_name": "TableclothArray.splitWhen", "type": { - "rendered": "let splitWhen: (t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" + "rendered": "(t<'a>, ~f: 'a => bool) => (t<'a>, t<'a>)" }, "info": { "deprecated": null, @@ -26053,7 +26053,7 @@ "name": "forEach", "qualified_name": "TableclothArray.forEach", "type": { - "rendered": "let forEach: (t<'a>, ~f: 'a => unit) => unit" + "rendered": "(t<'a>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -26135,7 +26135,7 @@ "name": "forEachWithIndex", "qualified_name": "TableclothArray.forEachWithIndex", "type": { - "rendered": "let forEachWithIndex: (t<'a>, ~f: (int, 'a) => unit) => unit" + "rendered": "(t<'a>, ~f: (int, 'a) => unit) => unit" }, "info": { "deprecated": null, @@ -26310,7 +26310,7 @@ "name": "intersperse", "qualified_name": "TableclothArray.intersperse", "type": { - "rendered": "let intersperse: (t<'a>, ~sep: 'a) => t<'a>" + "rendered": "(t<'a>, ~sep: 'a) => t<'a>" }, "info": { "deprecated": null, @@ -26403,7 +26403,7 @@ "name": "chunksOf", "qualified_name": "TableclothArray.chunksOf", "type": { - "rendered": "let chunksOf: (t<'a>, ~size: int) => t>" + "rendered": "(t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -26485,7 +26485,7 @@ "name": "sliding", "qualified_name": "TableclothArray.sliding", "type": { - "rendered": "let sliding: (~step: int=?, t<'a>, ~size: int) => t>" + "rendered": "(~step: int=?, t<'a>, ~size: int) => t>" }, "info": { "deprecated": null, @@ -26685,7 +26685,7 @@ "name": "join", "qualified_name": "TableclothArray.join", "type": { - "rendered": "let join: (t, ~sep: string) => string" + "rendered": "(t, ~sep: string) => string" }, "info": { "deprecated": null, @@ -26787,7 +26787,7 @@ "name": "groupBy", "qualified_name": "TableclothArray.groupBy", "type": { - "rendered": "let groupBy: (\n t<'value>,\n TableclothComparator.s<'key, 'id>,\n ~f: 'value => 'key,\n) => TableclothMap.t<'key, list<'value>, 'id>" + "rendered": "(\n t<'value>,\n TableclothComparator.s<'key, 'id>,\n ~f: 'value => 'key,\n) => TableclothMap.t<'key, list<'value>, 'id>" }, "info": { "deprecated": null, @@ -28009,7 +28009,7 @@ "name": "singleton", "qualified_name": "TableclothMap.singleton", "type": { - "rendered": "let singleton: (\n TableclothComparator.s<'key, 'identity>,\n ~key: 'key,\n ~value: 'value,\n) => t<'key, 'value, 'identity>" + "rendered": "(\n TableclothComparator.s<'key, 'identity>,\n ~key: 'key,\n ~value: 'value,\n) => t<'key, 'value, 'identity>" }, "info": { "deprecated": null, @@ -28217,7 +28217,7 @@ "name": "add", "qualified_name": "TableclothMap.add", "type": { - "rendered": "let add: (t<'key, 'value, 'id>, ~key: 'key, ~value: 'value) => t<'key, 'value, 'id>" + "rendered": "(t<'key, 'value, 'id>, ~key: 'key, ~value: 'value) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -28725,7 +28725,7 @@ "name": "update", "qualified_name": "TableclothMap.update", "type": { - "rendered": "let update: (\n t<'key, 'value, 'id>,\n ~key: 'key,\n ~f: option<'value> => option<'value>,\n) => t<'key, 'value, 'id>" + "rendered": "(\n t<'key, 'value, 'id>,\n ~key: 'key,\n ~f: option<'value> => option<'value>,\n) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -28961,7 +28961,7 @@ "name": "any", "qualified_name": "TableclothMap.any", "type": { - "rendered": "let any: (t<_, 'value, _>, ~f: 'value => bool) => bool" + "rendered": "(t<_, 'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -29023,7 +29023,7 @@ "name": "all", "qualified_name": "TableclothMap.all", "type": { - "rendered": "let all: (t<_, 'value, _>, ~f: 'value => bool) => bool" + "rendered": "(t<_, 'value, _>, ~f: 'value => bool) => bool" }, "info": { "deprecated": null, @@ -29085,7 +29085,7 @@ "name": "find", "qualified_name": "TableclothMap.find", "type": { - "rendered": "let find: (t<'key, 'value, _>, ~f: (~key: 'key, ~value: 'value) => bool) => option<('key, 'value)>" + "rendered": "(t<'key, 'value, _>, ~f: (~key: 'key, ~value: 'value) => bool) => option<('key, 'value)>" }, "info": { "deprecated": null, @@ -29685,7 +29685,7 @@ "name": "merge", "qualified_name": "TableclothMap.merge", "type": { - "rendered": "let merge: (\n t<'key, 'v1, 'id>,\n t<'key, 'v2, 'id>,\n ~f: ('key, option<'v1>, option<'v2>) => option<'v3>,\n) => t<'key, 'v3, 'id>" + "rendered": "(\n t<'key, 'v1, 'id>,\n t<'key, 'v2, 'id>,\n ~f: ('key, option<'v1>, option<'v2>) => option<'v3>,\n) => t<'key, 'v3, 'id>" }, "info": { "deprecated": null, @@ -29809,7 +29809,7 @@ "name": "map", "qualified_name": "TableclothMap.map", "type": { - "rendered": "let map: (t<'key, 'value, 'id>, ~f: 'value => 'b) => t<'key, 'b, 'id>" + "rendered": "(t<'key, 'value, 'id>, ~f: 'value => 'b) => t<'key, 'b, 'id>" }, "info": { "deprecated": null, @@ -29883,7 +29883,7 @@ "name": "mapWithIndex", "qualified_name": "TableclothMap.mapWithIndex", "type": { - "rendered": "let mapWithIndex: (t<'key, 'value, 'id>, ~f: ('key, 'value) => 'b) => t<'key, 'b, 'id>" + "rendered": "(t<'key, 'value, 'id>, ~f: ('key, 'value) => 'b) => t<'key, 'b, 'id>" }, "info": { "deprecated": null, @@ -29949,7 +29949,7 @@ "name": "filter", "qualified_name": "TableclothMap.filter", "type": { - "rendered": "let filter: (t<'key, 'value, 'id>, ~f: 'value => bool) => t<'key, 'value, 'id>" + "rendered": "(t<'key, 'value, 'id>, ~f: 'value => bool) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -30039,7 +30039,7 @@ "name": "partition", "qualified_name": "TableclothMap.partition", "type": { - "rendered": "let partition: (\n t<'key, 'value, 'id>,\n ~f: (~key: 'key, ~value: 'value) => bool,\n) => (t<'key, 'value, 'id>, t<'key, 'value, 'id>)" + "rendered": "(\n t<'key, 'value, 'id>,\n ~f: (~key: 'key, ~value: 'value) => bool,\n) => (t<'key, 'value, 'id>, t<'key, 'value, 'id>)" }, "info": { "deprecated": null, @@ -30145,7 +30145,7 @@ "name": "fold", "qualified_name": "TableclothMap.fold", "type": { - "rendered": "let fold: (t<'key, 'value, _>, ~initial: 'a, ~f: ('a, ~key: 'key, ~value: 'value) => 'a) => 'a" + "rendered": "(t<'key, 'value, _>, ~initial: 'a, ~f: ('a, ~key: 'key, ~value: 'value) => 'a) => 'a" }, "info": { "deprecated": null, @@ -30241,7 +30241,7 @@ "name": "forEach", "qualified_name": "TableclothMap.forEach", "type": { - "rendered": "let forEach: (t<_, 'value, _>, ~f: 'value => unit) => unit" + "rendered": "(t<_, 'value, _>, ~f: 'value => unit) => unit" }, "info": { "deprecated": null, @@ -30300,7 +30300,7 @@ "name": "forEachWithIndex", "qualified_name": "TableclothMap.forEachWithIndex", "type": { - "rendered": "let forEachWithIndex: (t<'key, 'value, _>, ~f: (~key: 'key, ~value: 'value) => unit) => unit" + "rendered": "(t<'key, 'value, _>, ~f: (~key: 'key, ~value: 'value) => unit) => unit" }, "info": { "deprecated": null, @@ -32903,7 +32903,7 @@ "name": "map", "qualified_name": "TableclothOption.map", "type": { - "rendered": "let map: (t<'a>, ~f: 'a => 'b) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -33043,7 +33043,7 @@ "name": "map2", "qualified_name": "TableclothOption.map2", "type": { - "rendered": "let map2: (t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" + "rendered": "(t<'a>, t<'b>, ~f: ('a, 'b) => 'c) => t<'c>" }, "info": { "deprecated": null, @@ -33222,7 +33222,7 @@ "name": "andThen", "qualified_name": "TableclothOption.andThen", "type": { - "rendered": "let andThen: (t<'a>, ~f: 'a => t<'b>) => t<'b>" + "rendered": "(t<'a>, ~f: 'a => t<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -33445,7 +33445,7 @@ "name": "unwrap", "qualified_name": "TableclothOption.unwrap", "type": { - "rendered": "let unwrap: (t<'a>, ~default: 'a) => 'a" + "rendered": "(t<'a>, ~default: 'a) => 'a" }, "info": { "deprecated": null, @@ -34187,7 +34187,7 @@ "name": "tap", "qualified_name": "TableclothOption.tap", "type": { - "rendered": "let tap: (t<'a>, ~f: 'a => unit) => unit" + "rendered": "(t<'a>, ~f: 'a => unit) => unit" }, "info": { "deprecated": null, @@ -35446,7 +35446,7 @@ "name": "repeat", "qualified_name": "TableclothString.repeat", "type": { - "rendered": "let repeat: (string, ~count: int) => string" + "rendered": "(string, ~count: int) => string" }, "info": { "deprecated": null, @@ -35603,7 +35603,7 @@ "name": "initialize", "qualified_name": "TableclothString.initialize", "type": { - "rendered": "let initialize: (int, ~f: int => char) => string" + "rendered": "(int, ~f: int => char) => string" }, "info": { "deprecated": null, @@ -35741,7 +35741,7 @@ "name": "getAt", "qualified_name": "TableclothString.getAt", "type": { - "rendered": "let getAt: (string, ~index: int) => option" + "rendered": "(string, ~index: int) => option" }, "info": { "deprecated": null, @@ -36016,7 +36016,7 @@ "name": "slice", "qualified_name": "TableclothString.slice", "type": { - "rendered": "let slice: (~to_: int=?, string, ~from: int) => string" + "rendered": "(~to_: int=?, string, ~from: int) => string" }, "info": { "deprecated": null, @@ -36241,7 +36241,7 @@ "name": "startsWith", "qualified_name": "TableclothString.startsWith", "type": { - "rendered": "let startsWith: (string, ~prefix: string) => bool" + "rendered": "(string, ~prefix: string) => bool" }, "info": { "deprecated": null, @@ -36330,7 +36330,7 @@ "name": "endsWith", "qualified_name": "TableclothString.endsWith", "type": { - "rendered": "let endsWith: (string, ~suffix: string) => bool" + "rendered": "(string, ~suffix: string) => bool" }, "info": { "deprecated": null, @@ -36423,7 +36423,7 @@ "name": "includes", "qualified_name": "TableclothString.includes", "type": { - "rendered": "let includes: (string, ~substring: string) => bool" + "rendered": "(string, ~substring: string) => bool" }, "info": { "deprecated": null, @@ -36625,7 +36625,7 @@ "name": "dropLeft", "qualified_name": "TableclothString.dropLeft", "type": { - "rendered": "let dropLeft: (string, ~count: int) => string" + "rendered": "(string, ~count: int) => string" }, "info": { "deprecated": null, @@ -36751,7 +36751,7 @@ "name": "dropRight", "qualified_name": "TableclothString.dropRight", "type": { - "rendered": "let dropRight: (string, ~count: int) => string" + "rendered": "(string, ~count: int) => string" }, "info": { "deprecated": null, @@ -37071,7 +37071,7 @@ "name": "insertAt", "qualified_name": "TableclothString.insertAt", "type": { - "rendered": "let insertAt: (string, ~index: int, ~value: t) => string" + "rendered": "(string, ~index: int, ~value: t) => string" }, "info": { "deprecated": null, @@ -37836,7 +37836,7 @@ "name": "padLeft", "qualified_name": "TableclothString.padLeft", "type": { - "rendered": "let padLeft: (string, int, ~with_: string) => string" + "rendered": "(string, int, ~with_: string) => string" }, "info": { "deprecated": null, @@ -37926,7 +37926,7 @@ "name": "padRight", "qualified_name": "TableclothString.padRight", "type": { - "rendered": "let padRight: (string, int, ~with_: string) => string" + "rendered": "(string, int, ~with_: string) => string" }, "info": { "deprecated": null, @@ -38168,7 +38168,7 @@ "name": "split", "qualified_name": "TableclothString.split", "type": { - "rendered": "let split: (string, ~on: string) => list" + "rendered": "(string, ~on: string) => list" }, "info": { "deprecated": null, @@ -38268,7 +38268,7 @@ "name": "forEach", "qualified_name": "TableclothString.forEach", "type": { - "rendered": "let forEach: (string, ~f: char => unit) => unit" + "rendered": "(string, ~f: char => unit) => unit" }, "info": { "deprecated": null, @@ -38314,7 +38314,7 @@ "name": "fold", "qualified_name": "TableclothString.fold", "type": { - "rendered": "let fold: (string, ~initial: 'a, ~f: ('a, char) => 'a) => 'a" + "rendered": "(string, ~initial: 'a, ~f: ('a, char) => 'a) => 'a" }, "info": { "deprecated": null, @@ -42642,7 +42642,7 @@ "name": "divide", "qualified_name": "TableclothInt.divide", "type": { - "rendered": "let divide: (t, ~by: t) => t" + "rendered": "(t, ~by: t) => t" }, "info": { "deprecated": null, @@ -42930,7 +42930,7 @@ "name": "power", "qualified_name": "TableclothInt.power", "type": { - "rendered": "let power: (~base: t, ~exponent: t) => t" + "rendered": "(~base: t, ~exponent: t) => t" }, "info": { "deprecated": null, @@ -43382,7 +43382,7 @@ "name": "modulo", "qualified_name": "TableclothInt.modulo", "type": { - "rendered": "let modulo: (t, ~by: t) => t" + "rendered": "(t, ~by: t) => t" }, "info": { "deprecated": null, @@ -43714,7 +43714,7 @@ "name": "remainder", "qualified_name": "TableclothInt.remainder", "type": { - "rendered": "let remainder: (t, ~by: t) => t" + "rendered": "(t, ~by: t) => t" }, "info": { "deprecated": null, @@ -44228,7 +44228,7 @@ "name": "clamp", "qualified_name": "TableclothInt.clamp", "type": { - "rendered": "let clamp: (t, ~lower: t, ~upper: t) => t" + "rendered": "(t, ~lower: t, ~upper: t) => t" }, "info": { "deprecated": null, @@ -44389,7 +44389,7 @@ "name": "inRange", "qualified_name": "TableclothInt.inRange", "type": { - "rendered": "let inRange: (t, ~lower: t, ~upper: t) => bool" + "rendered": "(t, ~lower: t, ~upper: t) => bool" }, "info": { "deprecated": null, @@ -46338,7 +46338,7 @@ "name": "tap", "qualified_name": "TableclothFun.tap", "type": { - "rendered": "let tap: ('a, ~f: 'a => unit) => 'a" + "rendered": "('a, ~f: 'a => unit) => 'a" }, "info": { "deprecated": null, @@ -46497,7 +46497,7 @@ "name": "times", "qualified_name": "TableclothFun.times", "type": { - "rendered": "let times: (int, ~f: unit => unit) => unit" + "rendered": "(int, ~f: unit => unit) => unit" }, "info": { "deprecated": null, @@ -48763,7 +48763,7 @@ "name": "divide", "qualified_name": "TableclothFloat.divide", "type": { - "rendered": "let divide: (t, ~by: t) => t" + "rendered": "(t, ~by: t) => t" }, "info": { "deprecated": null, @@ -48918,7 +48918,7 @@ "name": "power", "qualified_name": "TableclothFloat.power", "type": { - "rendered": "let power: (~base: t, ~exponent: t) => t" + "rendered": "(~base: t, ~exponent: t) => t" }, "info": { "deprecated": null, @@ -49566,7 +49566,7 @@ "name": "clamp", "qualified_name": "TableclothFloat.clamp", "type": { - "rendered": "let clamp: (t, ~lower: t, ~upper: t) => t" + "rendered": "(t, ~lower: t, ~upper: t) => t" }, "info": { "deprecated": null, @@ -49874,7 +49874,7 @@ "name": "log", "qualified_name": "TableclothFloat.log", "type": { - "rendered": "let log: (t, ~base: t) => t" + "rendered": "(t, ~base: t) => t" }, "info": { "deprecated": null, @@ -50602,7 +50602,7 @@ "name": "inRange", "qualified_name": "TableclothFloat.inRange", "type": { - "rendered": "let inRange: (t, ~lower: t, ~upper: t) => bool" + "rendered": "(t, ~lower: t, ~upper: t) => bool" }, "info": { "deprecated": null, @@ -52422,7 +52422,7 @@ "name": "atan2", "qualified_name": "TableclothFloat.atan2", "type": { - "rendered": "let atan2: (~y: t, ~x: t) => radians" + "rendered": "(~y: t, ~x: t) => radians" }, "info": { "deprecated": null, @@ -52756,7 +52756,7 @@ "name": "round", "qualified_name": "TableclothFloat.round", "type": { - "rendered": "let round: (~direction: direction=?, t) => t" + "rendered": "(~direction: direction=?, t) => t" }, "info": { "deprecated": null, From 1b63725641d244eba14c5733e581ee228aef1504 Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Mon, 10 Jan 2022 03:35:47 +0300 Subject: [PATCH 4/8] WIP submodules & cusotm operators (.?[]) etc --- ocamldoc-json-generator/JsonGenerator.ml | 112 ++++++++++++++++---- ocamldoc-json-generator/Makefile | 4 + website/model-rescript.json | 126 +++++++++++------------ 3 files changed, 160 insertions(+), 82 deletions(-) diff --git a/ocamldoc-json-generator/JsonGenerator.ml b/ocamldoc-json-generator/JsonGenerator.ml index 193aac43..1415bc4e 100644 --- a/ocamldoc-json-generator/JsonGenerator.ml +++ b/ocamldoc-json-generator/JsonGenerator.ml @@ -1019,31 +1019,97 @@ class json = while true do lines := input_line chan :: !lines done ; - Some !lines + !lines with | End_of_file -> close_in chan ; - Some (List.rev !lines) + List.rev !lines with - | _ -> - None + | err -> + print_DEBUG ("!!!!!!!!!!!!!!!!!!!!!!! " ^ (Printexc.to_string err)) ; + [ "no file" ^ filename ] in + let starts_with line funcName = - let r = Str.regexp ("^" ^ "let " ^ funcName) in - Str.string_match r line 0 + let r_let = Str.regexp (Str.quote "let " ^ funcName) in + let r_external = Str.regexp (Str.quote "external " ^ funcName) in + let r_module = Str.regexp (Str.quote "module " ^ funcName) in + let r_module_type = Str.regexp (Str.quote "module type " ^ funcName) in + let contains_pars x = String.contains x '(' in + let is_operator = + match contains_pars funcName with + | true -> + let start_index = 1 in + let close_index = String.index funcName ')' in + let extracted_val = + String.sub funcName start_index (close_index - start_index) |> String.trim + in + let stop_chars = Str.regexp {|[\"letexternal]|} in + let cleaned_line = Str.global_replace stop_chars "" line |> String.trim in + (** print_DEBUG ("funcName " ^ extracted_val ^ " | " ^ cleaned_line) ;*) + let r = Str.regexp (Str.quote extracted_val) in + Str.string_match r cleaned_line 0 + | _ -> + false + in + let is_let = Str.string_match r_let line 0 in + let is_external = Str.string_match r_external line 0 in + let is_module = Str.string_match r_module line 0 in + let is_module_type = Str.string_match r_module_type line 0 in + + + + is_let || is_external || is_module || is_module_type || is_operator in let trim_name line = match String.split_on_char ':' line with | _ :: result -> result |> String.concat ":" |> String.trim | _ -> - line + line |> String.trim + in + let remove_external line = + match String.split_on_char '=' line with | result::_ -> result | _ -> line + in + let is_submodule moduleName = + match moduleName |> String.split_on_char '.' with + | [ _ ] -> + None + | [ glob; block ] -> + Some (glob, block) + | _ -> + None + in + let fetch_rescript_submodule ~file ~block = + print_DEBUG ("reading " ^ file ^ " | " ^ block) ; + let filename = "./_rescript/" ^ file ^ ".resi" in + let result = ref [ "" ] in + let subName = block in + let handle_line line = + match starts_with line subName with + | true -> + result := List.append [ line ] !result + | _ -> + ( match !result with + | [ "" ] | "}" :: _ -> + () + | _ -> + result := List.append [ line |> String.trim ] !result ) + in + let () = + let lines = read_file filename in + List.iter handle_line lines + in + let xxx = + !result |> List.tl |> List.rev |> String.concat "" |> trim_name + in + !result |> List.tl |> List.rev in let fetch_rescript_type ~moduleName ~funcName = let filename = "./_rescript/" ^ moduleName ^ ".resi" in let result = ref [ "" ] in let handle_line line = - match (starts_with line funcName, !result) with + match (starts_with line (funcName), !result) with | true, [ "" ] -> result := List.append [ line ] !result | _, "" :: rest -> @@ -1053,27 +1119,35 @@ class json = in let () = - let lines = read_file filename in + let lines = + match moduleName |> is_submodule with + | Some (file, block) -> + fetch_rescript_submodule ~file ~block + | None -> + read_file filename + in - match lines with - | Some lines -> - List.iter handle_line lines - | None -> - () + List.iter handle_line lines in - !result |> List.rev |> String.concat "" |> trim_name + !result |> List.rev |> String.concat "" |> trim_name in try let rendered = - fetch_rescript_type ~moduleName ~funcName - |> Odoc_info.remove_ending_newline + match + fetch_rescript_type ~moduleName ~funcName + |> Odoc_info.remove_ending_newline + with + | "" -> + "Empty type of: " ^ moduleName ^ funcName + | ok -> + ok in obj [ ("rendered", string rendered) ] with - | _ -> + | err -> obj [ ( "rendered" - , string ("Failed to retrieve type of: " ^ moduleName ^ funcName) + , string ("Failed to retrieve type of: " ^ (Printexc.to_string err)) ) ] diff --git a/ocamldoc-json-generator/Makefile b/ocamldoc-json-generator/Makefile index 2f3109e1..bcc37262 100644 --- a/ocamldoc-json-generator/Makefile +++ b/ocamldoc-json-generator/Makefile @@ -163,6 +163,10 @@ rescript-interfaces: opt dummy ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothString.mli > ./_rescript/TableclothString.resi ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothTuple2.mli > ./_rescript/TableclothTuple2.resi ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothTuple3.mli > ./_rescript/TableclothTuple3.resi + # these are not interfaces, so we do just pretend that they actually are. Still works! + ~/.npm-global/bin/esy bsc -format res ../rescript/src/Internal.ml > ./_rescript/Internal.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothComparator.ml > ./_rescript/TableclothComparator.resi + ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothContainer.ml > ./_rescript/TableclothContainer.resi doc-native: build-native diff --git a/website/model-rescript.json b/website/model-rescript.json index b88406bb..a8d063c3 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -5496,7 +5496,7 @@ "name": "(.?{})", "qualified_name": "TableclothSet.(.?{})", "type": { - "rendered": "" + "rendered": "(t<'element, _>, 'element) => bool" }, "info": { "deprecated": null, @@ -6991,7 +6991,7 @@ "name": "empty", "qualified_name": "TableclothSet.Poly.empty", "type": { - "rendered": "" + "rendered": "unit => t<'a>" }, "info": { "deprecated": null, @@ -7037,7 +7037,7 @@ "name": "singleton", "qualified_name": "TableclothSet.Poly.singleton", "type": { - "rendered": "" + "rendered": "'a => t<'a>" }, "info": { "deprecated": null, @@ -7111,7 +7111,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.Poly.fromArray", "type": { - "rendered": "" + "rendered": "array<'a> => t<'a>" }, "info": { "deprecated": null, @@ -7201,7 +7201,7 @@ "name": "fromList", "qualified_name": "TableclothSet.Poly.fromList", "type": { - "rendered": "" + "rendered": "list<'a> => t<'a>" }, "info": { "deprecated": null, @@ -7370,7 +7370,7 @@ "name": "empty", "qualified_name": "TableclothSet.Int.empty", "type": { - "rendered": "" + "rendered": "t" }, "info": { "deprecated": null, @@ -7408,7 +7408,7 @@ "name": "singleton", "qualified_name": "TableclothSet.Int.singleton", "type": { - "rendered": "" + "rendered": "int => t" }, "info": { "deprecated": null, @@ -7498,7 +7498,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.Int.fromArray", "type": { - "rendered": "" + "rendered": "array => t" }, "info": { "deprecated": null, @@ -7588,7 +7588,7 @@ "name": "fromList", "qualified_name": "TableclothSet.Int.fromList", "type": { - "rendered": "" + "rendered": "list => t" }, "info": { "deprecated": null, @@ -7769,7 +7769,7 @@ "name": "empty", "qualified_name": "TableclothSet.String.empty", "type": { - "rendered": "" + "rendered": "t" }, "info": { "deprecated": null, @@ -7807,7 +7807,7 @@ "name": "singleton", "qualified_name": "TableclothSet.String.singleton", "type": { - "rendered": "" + "rendered": "string => t" }, "info": { "deprecated": null, @@ -7897,7 +7897,7 @@ "name": "fromArray", "qualified_name": "TableclothSet.String.fromArray", "type": { - "rendered": "" + "rendered": "array => t" }, "info": { "deprecated": null, @@ -7987,7 +7987,7 @@ "name": "fromList", "qualified_name": "TableclothSet.String.fromList", "type": { - "rendered": "" + "rendered": "list => t" }, "info": { "deprecated": null, @@ -11851,7 +11851,7 @@ "name": "(|?)", "qualified_name": "TableclothResult.(|?)", "type": { - "rendered": "" + "rendered": "(t<'a, 'error>, 'a) => 'a" }, "info": { "deprecated": null, @@ -11980,7 +11980,7 @@ "name": "(>>=)", "qualified_name": "TableclothResult.(>>=)", "type": { - "rendered": "" + "rendered": "(t<'ok, 'error>, 'ok => t<'b, 'error>) => t<'b, 'error>" }, "info": { "deprecated": null, @@ -12123,7 +12123,7 @@ "name": "(>>|)", "qualified_name": "TableclothResult.(>>|)", "type": { - "rendered": "" + "rendered": "(t<'a, 'error>, 'a => 'b) => t<'b, 'error>" }, "info": { "deprecated": null, @@ -21330,7 +21330,7 @@ "name": "(.?())", "qualified_name": "TableclothArray.(.?())", "type": { - "rendered": "" + "rendered": "(array<'element>, int) => option<'element>" }, "info": { "deprecated": null, @@ -28318,7 +28318,7 @@ "name": "(.?{}<-)", "qualified_name": "TableclothMap.(.?{}<-)", "type": { - "rendered": "" + "rendered": "(t<'key, 'value, 'id>, 'key, 'value) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -28598,7 +28598,7 @@ "name": "(.?{})", "qualified_name": "TableclothMap.(.?{})", "type": { - "rendered": "" + "rendered": "(t<'key, 'value, 'id>, 'key, 'value) => t<'key, 'value, 'id>" }, "info": { "deprecated": null, @@ -30732,7 +30732,7 @@ "name": "empty", "qualified_name": "TableclothMap.Poly.empty", "type": { - "rendered": "" + "rendered": "unit => t<'key, 'value>" }, "info": { "deprecated": null, @@ -30770,7 +30770,7 @@ "name": "singleton", "qualified_name": "TableclothMap.Poly.singleton", "type": { - "rendered": "" + "rendered": "(~key: 'key, ~value: 'value) => t<'key, 'value>" }, "info": { "deprecated": null, @@ -30844,7 +30844,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.Poly.fromArray", "type": { - "rendered": "" + "rendered": "array<('key, 'value)> => t<'key, 'value>" }, "info": { "deprecated": null, @@ -30902,7 +30902,7 @@ "name": "fromList", "qualified_name": "TableclothMap.Poly.fromList", "type": { - "rendered": "" + "rendered": "list<('key, 'value)> => t<'key, 'value>" }, "info": { "deprecated": null, @@ -31039,7 +31039,7 @@ "name": "empty", "qualified_name": "TableclothMap.Int.empty", "type": { - "rendered": "" + "rendered": "t<'value>" }, "info": { "deprecated": null, @@ -31077,7 +31077,7 @@ "name": "singleton", "qualified_name": "TableclothMap.Int.singleton", "type": { - "rendered": "" + "rendered": "(~key: int, ~value: 'value) => t<'value>" }, "info": { "deprecated": null, @@ -31151,7 +31151,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.Int.fromArray", "type": { - "rendered": "" + "rendered": "array<(int, 'value)> => t<'value>" }, "info": { "deprecated": null, @@ -31209,7 +31209,7 @@ "name": "fromList", "qualified_name": "TableclothMap.Int.fromList", "type": { - "rendered": "" + "rendered": "list<(int, 'value)> => t<'value>" }, "info": { "deprecated": null, @@ -31358,7 +31358,7 @@ "name": "empty", "qualified_name": "TableclothMap.String.empty", "type": { - "rendered": "" + "rendered": "t<'value>" }, "info": { "deprecated": null, @@ -31396,7 +31396,7 @@ "name": "singleton", "qualified_name": "TableclothMap.String.singleton", "type": { - "rendered": "" + "rendered": "(~key: string, ~value: 'value) => t<'value>" }, "info": { "deprecated": null, @@ -31470,7 +31470,7 @@ "name": "fromArray", "qualified_name": "TableclothMap.String.fromArray", "type": { - "rendered": "" + "rendered": "array<(string, 'value)> => t<'value>" }, "info": { "deprecated": null, @@ -31528,7 +31528,7 @@ "name": "fromList", "qualified_name": "TableclothMap.String.fromList", "type": { - "rendered": "" + "rendered": "list<(string, 'value)> => t<'value>" }, "info": { "deprecated": null, @@ -34785,7 +34785,7 @@ "name": "(|?)", "qualified_name": "TableclothOption.(|?)", "type": { - "rendered": "" + "rendered": "(t<'a>, 'a) => 'a" }, "info": { "deprecated": null, @@ -34886,7 +34886,7 @@ "name": "(>>|)", "qualified_name": "TableclothOption.(>>|)", "type": { - "rendered": "" + "rendered": "(t<'a>, 'a => 'b) => t<'b>" }, "info": { "deprecated": null, @@ -34987,7 +34987,7 @@ "name": "(>>=)", "qualified_name": "TableclothOption.(>>=)", "type": { - "rendered": "" + "rendered": "(t<'a>, 'a => t<'b>) => t<'b>" }, "info": { "deprecated": null, @@ -35783,7 +35783,7 @@ "name": "(.?[])", "qualified_name": "TableclothString.(.?[])", "type": { - "rendered": "Failed to retrieve type of: TableclothString(.?[])" + "rendered": "Failed to retrieve type of: Failure(\"[ class not closed by ]\")" }, "info": { "deprecated": null, @@ -41158,7 +41158,7 @@ "name": "toBeltComparator", "qualified_name": "Internal.toBeltComparator", "type": { - "rendered": "" + "rendered": "TableclothComparator.S with type identity = id and type t = a),\n): Belt.Id.comparable =>\n module(\n {\n type rec t = M.t" }, "info": null, "parameters": { @@ -42320,7 +42320,7 @@ "name": "(+)", "qualified_name": "TableclothInt.(+)", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -42450,7 +42450,7 @@ "name": "(-)", "qualified_name": "TableclothInt.(-)", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -42588,7 +42588,7 @@ "name": "( * )", "qualified_name": "TableclothInt.( * )", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -42780,7 +42780,7 @@ "name": "(/)", "qualified_name": "TableclothInt.(/)", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -42834,7 +42834,7 @@ "name": "(/.)", "qualified_name": "TableclothInt.(/.)", "type": { - "rendered": "" + "rendered": "(t, t) => float" }, "info": { "deprecated": null, @@ -43035,7 +43035,7 @@ "name": "( ** )", "qualified_name": "TableclothInt.( ** )", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -43216,7 +43216,7 @@ "name": "(~-)", "qualified_name": "TableclothInt.(~-)", "type": { - "rendered": "" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -43660,7 +43660,7 @@ "name": "(mod)", "qualified_name": "TableclothInt.(mod)", "type": { - "rendered": "" + "rendered": "(t, ~by: t) => t" }, "info": { "deprecated": null, @@ -45078,7 +45078,7 @@ "name": "identity", "qualified_name": "TableclothFun.identity", "type": { - "rendered": "" + "rendered": "'a => 'a = \"%identity\"" }, "info": { "deprecated": null, @@ -45190,7 +45190,7 @@ "name": "ignore", "qualified_name": "TableclothFun.ignore", "type": { - "rendered": "" + "rendered": "_ => unit = \"%ignore\"" }, "info": { "deprecated": null, @@ -45770,7 +45770,7 @@ "name": "(<|)", "qualified_name": "TableclothFun.(<|)", "type": { - "rendered": "" + "rendered": "('a => 'b, 'a) => 'b" }, "info": { "deprecated": null, @@ -45868,7 +45868,7 @@ "name": "pipe", "qualified_name": "TableclothFun.pipe", "type": { - "rendered": "" + "rendered": "('a, 'a => 'b) => 'b = \"%revapply\"" }, "info": { "deprecated": null, @@ -45922,7 +45922,7 @@ "name": "(|>)", "qualified_name": "TableclothFun.(|>)", "type": { - "rendered": "" + "rendered": "Empty type of: TableclothFun(|>)" }, "info": { "deprecated": null, @@ -46169,7 +46169,7 @@ "name": "(<<)", "qualified_name": "TableclothFun.(<<)", "type": { - "rendered": "" + "rendered": "('b => 'c, 'a => 'b, 'a) => 'c" }, "info": { "deprecated": null, @@ -46284,7 +46284,7 @@ "name": "(>>)", "qualified_name": "TableclothFun.(>>)", "type": { - "rendered": "" + "rendered": "('a => 'b, 'b => 'c, 'a) => 'c" }, "info": { "deprecated": null, @@ -48399,7 +48399,7 @@ "name": "(+)", "qualified_name": "TableclothFloat.(+)", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -48554,7 +48554,7 @@ "name": "(-)", "qualified_name": "TableclothFloat.(-)", "type": { - "rendered": "" + "rendered": "Empty type of: TableclothFloat(-)" }, "info": { "deprecated": null, @@ -48709,7 +48709,7 @@ "name": "( * )", "qualified_name": "TableclothFloat.( * )", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -48864,7 +48864,7 @@ "name": "(/)", "qualified_name": "TableclothFloat.(/)", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -49019,7 +49019,7 @@ "name": "( ** )", "qualified_name": "TableclothFloat.( ** )", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -49174,7 +49174,7 @@ "name": "(~-)", "qualified_name": "TableclothFloat.(~-)", "type": { - "rendered": "" + "rendered": "t => t" }, "info": { "deprecated": null, @@ -54142,7 +54142,7 @@ "name": "zero", "qualified_name": "TableclothContainer.Sum.zero", "type": { - "rendered": "" + "rendered": "t" }, "info": null, "parameters": { @@ -54158,7 +54158,7 @@ "name": "add", "qualified_name": "TableclothContainer.Sum.add", "type": { - "rendered": "" + "rendered": "(t, t) => t" }, "info": null, "parameters": { @@ -54651,7 +54651,7 @@ "name": "(&&)", "qualified_name": "TableclothBool.(&&)", "type": { - "rendered": "" + "rendered": "(bool, bool) => bool = \"%sequand\"" }, "info": { "deprecated": null, @@ -54798,7 +54798,7 @@ "name": "(||)", "qualified_name": "TableclothBool.(||)", "type": { - "rendered": "" + "rendered": "(bool, bool) => bool = \"%sequor\"" }, "info": { "deprecated": null, @@ -55928,7 +55928,7 @@ "name": "compare", "qualified_name": "TableclothComparator.T.compare", "type": { - "rendered": "" + "rendered": "(t, t) => int" }, "info": null, "parameters": { @@ -56133,7 +56133,7 @@ "name": "comparator", "qualified_name": "TableclothComparator.S.comparator", "type": { - "rendered": "" + "rendered": "comparator" }, "info": null, "parameters": { From 6921adedfa9039e936cb56ed121718db551f08fa Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Mon, 10 Jan 2022 14:38:47 +0300 Subject: [PATCH 5/8] WIP --- ocamldoc-json-generator/JsonGenerator.ml | 42 ++++++++++++++---------- website/model-rescript.json | 18 +++++----- 2 files changed, 33 insertions(+), 27 deletions(-) diff --git a/ocamldoc-json-generator/JsonGenerator.ml b/ocamldoc-json-generator/JsonGenerator.ml index 1415bc4e..6e725e18 100644 --- a/ocamldoc-json-generator/JsonGenerator.ml +++ b/ocamldoc-json-generator/JsonGenerator.ml @@ -1026,15 +1026,15 @@ class json = List.rev !lines with | err -> - print_DEBUG ("!!!!!!!!!!!!!!!!!!!!!!! " ^ (Printexc.to_string err)) ; + print_DEBUG ("!!!!!!!!!!!!!!!!!!!!!!! " ^ Printexc.to_string err) ; [ "no file" ^ filename ] in let starts_with line funcName = - let r_let = Str.regexp (Str.quote "let " ^ funcName) in - let r_external = Str.regexp (Str.quote "external " ^ funcName) in - let r_module = Str.regexp (Str.quote "module " ^ funcName) in - let r_module_type = Str.regexp (Str.quote "module type " ^ funcName) in + let r_let = Str.regexp (Str.quote "let " ^ funcName ^ ":") in + let r_external = Str.regexp (Str.quote "external " ^ funcName ^ ":") in + let r_module = Str.regexp (Str.quote "module " ^ funcName) in + let r_module_type = Str.regexp (Str.quote "module type " ^ funcName) in let contains_pars x = String.contains x '(' in let is_operator = match contains_pars funcName with @@ -1042,23 +1042,25 @@ class json = let start_index = 1 in let close_index = String.index funcName ')' in let extracted_val = - String.sub funcName start_index (close_index - start_index) |> String.trim + String.sub funcName start_index (close_index - start_index) + |> String.trim in let stop_chars = Str.regexp {|[\"letexternal]|} in - let cleaned_line = Str.global_replace stop_chars "" line |> String.trim in - (** print_DEBUG ("funcName " ^ extracted_val ^ " | " ^ cleaned_line) ;*) - let r = Str.regexp (Str.quote extracted_val) in + let cleaned_line = + Str.global_replace stop_chars "" line |> String.trim + in + let r = Str.regexp (Str.quote extracted_val) in Str.string_match r cleaned_line 0 | _ -> false in + (** print_DEBUG ("funcName " ^ extracted_val ^ " | " ^ cleaned_line) ;*) + let is_let = Str.string_match r_let line 0 in let is_external = Str.string_match r_external line 0 in let is_module = Str.string_match r_module line 0 in let is_module_type = Str.string_match r_module_type line 0 in - - is_let || is_external || is_module || is_module_type || is_operator in let trim_name line = @@ -1067,9 +1069,13 @@ class json = result |> String.concat ":" |> String.trim | _ -> line |> String.trim - in - let remove_external line = - match String.split_on_char '=' line with | result::_ -> result | _ -> line + in + let remove_external line = + match String.split_on_char '=' line with + | result :: _ -> + result + | _ -> + line in let is_submodule moduleName = match moduleName |> String.split_on_char '.' with @@ -1103,13 +1109,13 @@ class json = let xxx = !result |> List.tl |> List.rev |> String.concat "" |> trim_name in - !result |> List.tl |> List.rev + !result |> List.tl |> List.rev in let fetch_rescript_type ~moduleName ~funcName = let filename = "./_rescript/" ^ moduleName ^ ".resi" in let result = ref [ "" ] in let handle_line line = - match (starts_with line (funcName), !result) with + match (starts_with line funcName, !result) with | true, [ "" ] -> result := List.append [ line ] !result | _, "" :: rest -> @@ -1129,7 +1135,7 @@ class json = List.iter handle_line lines in - !result |> List.rev |> String.concat "" |> trim_name + !result |> List.rev |> String.concat "" |> trim_name in try let rendered = @@ -1147,7 +1153,7 @@ class json = | err -> obj [ ( "rendered" - , string ("Failed to retrieve type of: " ^ (Printexc.to_string err)) + , string ("Failed to retrieve type of: " ^ Printexc.to_string err) ) ] diff --git a/website/model-rescript.json b/website/model-rescript.json index a8d063c3..92b36c5f 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -10828,7 +10828,7 @@ "name": "map", "qualified_name": "TableclothResult.map", "type": { - "rendered": "(t<'a, 'error>, t<'b, 'error>, ~f: ('a, 'b) => 'c) => t<'c, 'error>" + "rendered": "(t<'a, 'error>, ~f: 'a => 'b) => t<'b, 'error>" }, "info": { "deprecated": null, @@ -13991,7 +13991,7 @@ "name": "initial", "qualified_name": "TableclothList.initial", "type": { - "rendered": "(int, ~f: int => 'a) => t<'a>" + "rendered": "t<'a> => option>" }, "info": { "deprecated": null, @@ -16419,7 +16419,7 @@ "name": "minimum", "qualified_name": "TableclothList.minimum", "type": { - "rendered": "(~f: 'a => 'comparable, list<'a>) => option<'a>" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => option<'a>" }, "info": { "deprecated": null, @@ -16517,7 +16517,7 @@ "name": "maximum", "qualified_name": "TableclothList.maximum", "type": { - "rendered": "(~f: 'a => 'comparable, list<'a>) => option<'a>" + "rendered": "(t<'a>, ~compare: ('a, 'a) => int) => option<'a>" }, "info": { "deprecated": null, @@ -41158,7 +41158,7 @@ "name": "toBeltComparator", "qualified_name": "Internal.toBeltComparator", "type": { - "rendered": "TableclothComparator.S with type identity = id and type t = a),\n): Belt.Id.comparable =>\n module(\n {\n type rec t = M.t" + "rendered": "Empty type of: InternaltoBeltComparator" }, "info": null, "parameters": { @@ -43816,7 +43816,7 @@ "name": "maximum", "qualified_name": "TableclothInt.maximum", "type": { - "rendered": "t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -43909,7 +43909,7 @@ "name": "minimum", "qualified_name": "TableclothInt.minimum", "type": { - "rendered": "t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -49318,7 +49318,7 @@ "name": "maximum", "qualified_name": "TableclothFloat.maximum", "type": { - "rendered": "t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -49442,7 +49442,7 @@ "name": "minimum", "qualified_name": "TableclothFloat.minimum", "type": { - "rendered": "t" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, From f0d91e32991c87251e4ce9a1515d0626d1ef0ae3 Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Mon, 10 Jan 2022 19:17:40 +0300 Subject: [PATCH 6/8] Finishing Touches --- ocamldoc-json-generator/JsonGenerator.ml | 139 +++++++++++------------ ocamldoc-json-generator/Makefile | 2 +- website/model-rescript.json | 16 +-- 3 files changed, 77 insertions(+), 80 deletions(-) diff --git a/ocamldoc-json-generator/JsonGenerator.ml b/ocamldoc-json-generator/JsonGenerator.ml index 6e725e18..8c7872dc 100644 --- a/ocamldoc-json-generator/JsonGenerator.ml +++ b/ocamldoc-json-generator/JsonGenerator.ml @@ -1012,58 +1012,64 @@ class json = let open Json in (* let desc = t.desc in *) let read_file filename = + let lines = ref [] in + let chan = open_in filename in try - let lines = ref [] in - let chan = open_in filename in - try - while true do - lines := input_line chan :: !lines - done ; - !lines - with - | End_of_file -> - close_in chan ; - List.rev !lines + while true do + lines := input_line chan :: !lines + done ; + !lines with - | err -> - print_DEBUG ("!!!!!!!!!!!!!!!!!!!!!!! " ^ Printexc.to_string err) ; - [ "no file" ^ filename ] + | End_of_file -> + close_in chan ; + List.rev !lines in - let starts_with line funcName = - let r_let = Str.regexp (Str.quote "let " ^ funcName ^ ":") in - let r_external = Str.regexp (Str.quote "external " ^ funcName ^ ":") in - let r_module = Str.regexp (Str.quote "module " ^ funcName) in - let r_module_type = Str.regexp (Str.quote "module type " ^ funcName) in + let has_type_definition line funcName = let contains_pars x = String.contains x '(' in - let is_operator = - match contains_pars funcName with - | true -> - let start_index = 1 in - let close_index = String.index funcName ')' in - let extracted_val = - String.sub funcName start_index (close_index - start_index) - |> String.trim - in - let stop_chars = Str.regexp {|[\"letexternal]|} in - let cleaned_line = - Str.global_replace stop_chars "" line |> String.trim - in - let r = Str.regexp (Str.quote extracted_val) in - Str.string_match r cleaned_line 0 - | _ -> - false - in - (** print_DEBUG ("funcName " ^ extracted_val ^ " | " ^ cleaned_line) ;*) + if contains_pars funcName + then + (* detect let/external (~-) (.?[]) (mod) (|>) *) + let start_i = 1 in + let close_i = String.index funcName ')' in + let extracted_val = + String.sub funcName start_i (close_i - start_i) |> String.trim + in + let r_ignore = Str.regexp {|["ltextrna]|} in + let cleaned_line = + Str.global_replace r_ignore "" line |> String.trim + in + let q_external = Str.quote ("\\" ^ extracted_val) in + let q_let = Str.quote ("let " ^ extracted_val) in - let is_let = Str.string_match r_let line 0 in - let is_external = Str.string_match r_external line 0 in - let is_module = Str.string_match r_module line 0 in - let is_module_type = Str.string_match r_module_type line 0 in + let r_external = Str.regexp q_external in + let r_let = Str.regexp q_let in - is_let || is_external || is_module || is_module_type || is_operator + let is_external = Str.string_match r_external cleaned_line 0 in + let is_let = Str.string_match r_let line 0 in + + is_external || is_let + else + (* detect let/external/module/module type function_name *) + let q_let = Str.quote ("let " ^ funcName ^ ":") in + let q_external = Str.quote ("external " ^ funcName ^ ":") in + let q_module = Str.quote ("module " ^ funcName) in + let q_module_type = Str.quote ("module type " ^ funcName) in + + let r_let = Str.regexp q_let in + let r_external = Str.regexp q_external in + let r_module = Str.regexp q_module in + let r_module_type = Str.regexp q_module_type in + + let is_let = Str.string_match r_let line 0 in + let is_external = Str.string_match r_external line 0 in + let is_module = Str.string_match r_module line 0 in + let is_module_type = Str.string_match r_module_type line 0 in + + is_let || is_external || is_module || is_module_type in let trim_name line = + (*let (||): (bool, bool) => bool = "%seqor" => (bool, bool) => bool = "%seqor" *) match String.split_on_char ':' line with | _ :: result -> result |> String.concat ":" |> String.trim @@ -1071,11 +1077,11 @@ class json = line |> String.trim in let remove_external line = - match String.split_on_char '=' line with - | result :: _ -> - result - | _ -> - line + (* (bool, bool) => bool = "%seqor" => (bool, bool) => bool *) + let q_has_external = Str.quote " = \"" in + let r_let = Str.regexp q_has_external in + let result = Str.split r_let line in + match result with [ result; _ ] -> result | _ -> line in let is_submodule moduleName = match moduleName |> String.split_on_char '.' with @@ -1087,12 +1093,11 @@ class json = None in let fetch_rescript_submodule ~file ~block = - print_DEBUG ("reading " ^ file ^ " | " ^ block) ; let filename = "./_rescript/" ^ file ^ ".resi" in let result = ref [ "" ] in let subName = block in let handle_line line = - match starts_with line subName with + match has_type_definition line subName with | true -> result := List.append [ line ] !result | _ -> @@ -1115,7 +1120,7 @@ class json = let filename = "./_rescript/" ^ moduleName ^ ".resi" in let result = ref [ "" ] in let handle_line line = - match (starts_with line funcName, !result) with + match (has_type_definition line funcName, !result) with | true, [ "" ] -> result := List.append [ line ] !result | _, "" :: rest -> @@ -1135,27 +1140,19 @@ class json = List.iter handle_line lines in - !result |> List.rev |> String.concat "" |> trim_name + !result |> List.rev |> String.concat "" |> trim_name |> remove_external in - try - let rendered = - match - fetch_rescript_type ~moduleName ~funcName - |> Odoc_info.remove_ending_newline - with - | "" -> - "Empty type of: " ^ moduleName ^ funcName - | ok -> - ok - in - obj [ ("rendered", string rendered) ] - with - | err -> - obj - [ ( "rendered" - , string ("Failed to retrieve type of: " ^ Printexc.to_string err) - ) - ] + let rendered = + match + fetch_rescript_type ~moduleName ~funcName + |> Odoc_info.remove_ending_newline + with + | "" -> + "Empty type of: " ^ moduleName ^ funcName + | ok -> + ok + in + obj [ ("rendered", string rendered) ] (** Json to display a [Types.type_expr list]. *) method json_of_cstr_args diff --git a/ocamldoc-json-generator/Makefile b/ocamldoc-json-generator/Makefile index bcc37262..c938583f 100644 --- a/ocamldoc-json-generator/Makefile +++ b/ocamldoc-json-generator/Makefile @@ -163,7 +163,7 @@ rescript-interfaces: opt dummy ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothString.mli > ./_rescript/TableclothString.resi ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothTuple2.mli > ./_rescript/TableclothTuple2.resi ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothTuple3.mli > ./_rescript/TableclothTuple3.resi - # these are not interfaces, so we do just pretend that they actually are. Still works! + # These are not interfaces, so we do just pretend that they actually are. Still works! ~/.npm-global/bin/esy bsc -format res ../rescript/src/Internal.ml > ./_rescript/Internal.resi ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothComparator.ml > ./_rescript/TableclothComparator.resi ~/.npm-global/bin/esy bsc -format res ../rescript/src/TableclothContainer.ml > ./_rescript/TableclothContainer.resi diff --git a/website/model-rescript.json b/website/model-rescript.json index 92b36c5f..987463e9 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -35783,7 +35783,7 @@ "name": "(.?[])", "qualified_name": "TableclothString.(.?[])", "type": { - "rendered": "Failed to retrieve type of: Failure(\"[ class not closed by ]\")" + "rendered": "(string, int) => option" }, "info": { "deprecated": null, @@ -45078,7 +45078,7 @@ "name": "identity", "qualified_name": "TableclothFun.identity", "type": { - "rendered": "'a => 'a = \"%identity\"" + "rendered": "'a => 'a" }, "info": { "deprecated": null, @@ -45190,7 +45190,7 @@ "name": "ignore", "qualified_name": "TableclothFun.ignore", "type": { - "rendered": "_ => unit = \"%ignore\"" + "rendered": "_ => unit" }, "info": { "deprecated": null, @@ -45868,7 +45868,7 @@ "name": "pipe", "qualified_name": "TableclothFun.pipe", "type": { - "rendered": "('a, 'a => 'b) => 'b = \"%revapply\"" + "rendered": "('a, 'a => 'b) => 'b" }, "info": { "deprecated": null, @@ -45922,7 +45922,7 @@ "name": "(|>)", "qualified_name": "TableclothFun.(|>)", "type": { - "rendered": "Empty type of: TableclothFun(|>)" + "rendered": "('a, 'a => 'b) => 'b" }, "info": { "deprecated": null, @@ -48554,7 +48554,7 @@ "name": "(-)", "qualified_name": "TableclothFloat.(-)", "type": { - "rendered": "Empty type of: TableclothFloat(-)" + "rendered": "(t, t) => t" }, "info": { "deprecated": null, @@ -54651,7 +54651,7 @@ "name": "(&&)", "qualified_name": "TableclothBool.(&&)", "type": { - "rendered": "(bool, bool) => bool = \"%sequand\"" + "rendered": "(bool, bool) => bool" }, "info": { "deprecated": null, @@ -54798,7 +54798,7 @@ "name": "(||)", "qualified_name": "TableclothBool.(||)", "type": { - "rendered": "(bool, bool) => bool = \"%sequor\"" + "rendered": "(bool, bool) => bool" }, "info": { "deprecated": null, From 9173dc9965b449d477718a347417e9840161f46c Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Mon, 10 Jan 2022 19:37:33 +0300 Subject: [PATCH 7/8] Cleanup --- ocamldoc-json-generator/JsonGenerator.ml | 16 +-- website/model-rescript.json | 149 +++++++---------------- 2 files changed, 47 insertions(+), 118 deletions(-) diff --git a/ocamldoc-json-generator/JsonGenerator.ml b/ocamldoc-json-generator/JsonGenerator.ml index 8c7872dc..528b817a 100644 --- a/ocamldoc-json-generator/JsonGenerator.ml +++ b/ocamldoc-json-generator/JsonGenerator.ml @@ -1010,7 +1010,6 @@ class json = method json_of_rescript_type_expr (moduleName : string) (funcName : string) : Json.t = let open Json in - (* let desc = t.desc in *) let read_file filename = let lines = ref [] in let chan = open_in filename in @@ -1035,7 +1034,7 @@ class json = let extracted_val = String.sub funcName start_i (close_i - start_i) |> String.trim in - let r_ignore = Str.regexp {|["ltextrna]|} in + let r_ignore = Str.regexp "[\"ltextrna]" in let cleaned_line = Str.global_replace r_ignore "" line |> String.trim in @@ -1111,9 +1110,6 @@ class json = let lines = read_file filename in List.iter handle_line lines in - let xxx = - !result |> List.tl |> List.rev |> String.concat "" |> trim_name - in !result |> List.tl |> List.rev in let fetch_rescript_type ~moduleName ~funcName = @@ -1143,14 +1139,8 @@ class json = !result |> List.rev |> String.concat "" |> trim_name |> remove_external in let rendered = - match - fetch_rescript_type ~moduleName ~funcName - |> Odoc_info.remove_ending_newline - with - | "" -> - "Empty type of: " ^ moduleName ^ funcName - | ok -> - ok + fetch_rescript_type ~moduleName ~funcName + |> Odoc_info.remove_ending_newline in obj [ ("rendered", string rendered) ] diff --git a/website/model-rescript.json b/website/model-rescript.json index 987463e9..f2cc9922 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -27520,112 +27520,51 @@ } }, { - "tag": "Module", - "value": { - "name": "Of", - "kind": { - "tag": "ModuleFunctor", + "tag": "Text", + "value": [ + { + "tag": "Raw", + "value": "This functor lets you describe the type of Maps a little more concisely." + }, + { + "tag": "Newline", + "value": "\n" + }, + { + "tag": "Raw", + "value": "\n " + }, + { + "tag": "CodePre", "value": { - "parameter": { - "tag": "ModuleParameter", - "value": { - "name": "M", - "kind": { - "tag": "ModuleTypeAlias", - "value": "TableclothComparator.S" - } - } - }, - "result": { - "tag": "ModuleStruct", - "value": [ - { - "tag": "Type", - "value": { - "name": "t", - "parameters": "'value", - "is_private": false, - "father": "TableclothMap.Of", - "field_comment": null, - "kind": { - "tag": "TypeAbstract", - "value": null - }, - "manifest": { - "tag": "Other", - "value": { - "rendered": "(M.t, 'value, M.identity) TableclothMap.t" - } - }, - "info": null - } - } - ] - } + "ocaml": "\n let stringToInt : int Map.Of(String).t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", + "reason": "let stringToInt: Map.Of(String).t(int) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.Of(String).t(int)\n);\n" } }, - "info": { - "deprecated": null, - "description": { - "tag": "Text", - "value": [ - { - "tag": "Raw", - "value": "This functor lets you describe the type of Maps a little more concisely." - }, - { - "tag": "Newline", - "value": "\n" - }, - { - "tag": "Raw", - "value": "\n " - }, - { - "tag": "CodePre", - "value": { - "ocaml": "\n let stringToInt : int Map.Of(String).t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", - "reason": "let stringToInt: Map.Of(String).t(int) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.Of(String).t(int)\n);\n" - } - }, - { - "tag": "Newline", - "value": "\n" - }, - { - "tag": "Raw", - "value": "\n Is the same as" - }, - { - "tag": "Newline", - "value": "\n" - }, - { - "tag": "Raw", - "value": "\n " - }, - { - "tag": "CodePre", - "value": { - "ocaml": "\n let stringToInt : (string, int, String.identity) Map.t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", - "reason": "let stringToInt: Map.t(string, int, String.identity) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.t(string, int, String.identity)\n);\n" - } - } - ] - }, - "version": null, - "before": [ - ], - "since": null, - "exceptions": [ - ], - "return": null, - "see": [ - ], - "custom": [ - ] + { + "tag": "Newline", + "value": "\n" + }, + { + "tag": "Raw", + "value": "\n Is the same as" + }, + { + "tag": "Newline", + "value": "\n" + }, + { + "tag": "Raw", + "value": "\n " + }, + { + "tag": "CodePre", + "value": { + "ocaml": "\n let stringToInt : (string, int, String.identity) Map.t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", + "reason": "let stringToInt: Map.t(string, int, String.identity) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.t(string, int, String.identity)\n);\n" + } } - } + ] }, { "tag": "Text", @@ -31002,7 +30941,7 @@ "name": "identity", "parameters": "", "is_private": false, - "father": "TableclothMap.String", + "father": "TableclothMap.Int", "field_comment": null, "kind": { "tag": "TypeAbstract", @@ -31321,7 +31260,7 @@ "name": "identity", "parameters": "", "is_private": false, - "father": "TableclothMap.Int", + "father": "TableclothMap.String", "field_comment": null, "kind": { "tag": "TypeAbstract", @@ -41158,7 +41097,7 @@ "name": "toBeltComparator", "qualified_name": "Internal.toBeltComparator", "type": { - "rendered": "Empty type of: InternaltoBeltComparator" + "rendered": "" }, "info": null, "parameters": { From 8ffe3c3a12873f7918815be3fd49f78644c8d2bb Mon Sep 17 00:00:00 2001 From: FSergey Zhukaev Date: Mon, 10 Jan 2022 20:07:15 +0300 Subject: [PATCH 8/8] Updated rescript model --- website/model-rescript.json | 143 +++++++++++++++++++++++++----------- 1 file changed, 102 insertions(+), 41 deletions(-) diff --git a/website/model-rescript.json b/website/model-rescript.json index f2cc9922..624629ed 100644 --- a/website/model-rescript.json +++ b/website/model-rescript.json @@ -27520,51 +27520,112 @@ } }, { - "tag": "Text", - "value": [ - { - "tag": "Raw", - "value": "This functor lets you describe the type of Maps a little more concisely." - }, - { - "tag": "Newline", - "value": "\n" - }, - { - "tag": "Raw", - "value": "\n " - }, - { - "tag": "CodePre", + "tag": "Module", + "value": { + "name": "Of", + "kind": { + "tag": "ModuleFunctor", "value": { - "ocaml": "\n let stringToInt : int Map.Of(String).t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", - "reason": "let stringToInt: Map.Of(String).t(int) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.Of(String).t(int)\n);\n" + "parameter": { + "tag": "ModuleParameter", + "value": { + "name": "M", + "kind": { + "tag": "ModuleTypeAlias", + "value": "TableclothComparator.S" + } + } + }, + "result": { + "tag": "ModuleStruct", + "value": [ + { + "tag": "Type", + "value": { + "name": "t", + "parameters": "'value", + "is_private": false, + "father": "TableclothMap.Of", + "field_comment": null, + "kind": { + "tag": "TypeAbstract", + "value": null + }, + "manifest": { + "tag": "Other", + "value": { + "rendered": "(M.t, 'value, M.identity) TableclothMap.t" + } + }, + "info": null + } + } + ] + } } }, - { - "tag": "Newline", - "value": "\n" - }, - { - "tag": "Raw", - "value": "\n Is the same as" - }, - { - "tag": "Newline", - "value": "\n" - }, - { - "tag": "Raw", - "value": "\n " - }, - { - "tag": "CodePre", - "value": { - "ocaml": "\n let stringToInt : (string, int, String.identity) Map.t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", - "reason": "let stringToInt: Map.t(string, int, String.identity) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.t(string, int, String.identity)\n);\n" - } + "info": { + "deprecated": null, + "description": { + "tag": "Text", + "value": [ + { + "tag": "Raw", + "value": "This functor lets you describe the type of Maps a little more concisely." + }, + { + "tag": "Newline", + "value": "\n" + }, + { + "tag": "Raw", + "value": "\n " + }, + { + "tag": "CodePre", + "value": { + "ocaml": "\n let stringToInt : int Map.Of(String).t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", + "reason": "let stringToInt: Map.Of(String).t(int) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.Of(String).t(int)\n);\n" + } + }, + { + "tag": "Newline", + "value": "\n" + }, + { + "tag": "Raw", + "value": "\n Is the same as" + }, + { + "tag": "Newline", + "value": "\n" + }, + { + "tag": "Raw", + "value": "\n " + }, + { + "tag": "CodePre", + "value": { + "ocaml": "\n let stringToInt : (string, int, String.identity) Map.t =\n Map.fromList (module String) [(\"Apple\", 2); (\"Pear\", 0)]\n ", + "reason": "let stringToInt: Map.t(string, int, String.identity) = (\n Map.fromList((module String), [(\"Apple\", 2), (\"Pear\", 0)]):\n Map.t(string, int, String.identity)\n);\n" + } + } + ] + }, + "version": null, + "before": [ + ], + "since": null, + "exceptions": [ + ], + "return": null, + "see": [ + ], + "custom": [ + ] } - ] + } }, { "tag": "Text",